Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

osg.Box Constructor Parameters Issue #115

Open
carlsonp opened this issue Jun 26, 2013 · 0 comments
Open

osg.Box Constructor Parameters Issue #115

carlsonp opened this issue Jun 26, 2013 · 0 comments

Comments

@carlsonp
Copy link
Member

I think perhaps this may be an issue upstream with the osgLua binding but I'm not sure.

osg.Box can have a couple constructors.

box = osg.Box(Vecf(0,0,0), 10, 5, 5)
print(box.HalfLengths)
-- 5 5 5 .... this is wrong...

It looks like if you specify both the center and each of width, height, and depth... it incorrectly is using the constructor for center and width. Running the help() method on the box appears to show that all constructors are bound. I am not sure what order or how luabind evaluates the multiple constructor options that are available.

The workaround right now is manually creating a box using the empty constructor and then manually setting the center and dimensions of the box using the provided methods.

Thanks to @CDiss for finding this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant