You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
The text was updated successfully, but these errors were encountered: