Half extents of a cube scene node or AABB
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Half extents of a cube scene node or AABB
I'm working on my Havok integration, and I need to be able to match the sizes of boxes exactly. How can I get the half extents, and convex size of an Irrlicht cube scene node? And for automatically matching spheres, would it work to get the AABB of the sphere node, then divide the height of the sphere's AABB by 2 to use as the radius for the havok sphere?
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
Re: Half extents of a cube scene node or AABB
Why can't you use the scene node's object space bounding box? That box should completely and exactly enclose the box. If you want the half extents, you get the extents and divide by two. I have no idea what you mean by 'convex size' though.3DModelerMan wrote:How can I get the half extents, and convex size of an Irrlicht cube scene node?
Yes, that would work.3DModelerMan wrote:And for automatically matching spheres, would it work to get the AABB of the sphere node, then divide the height of the sphere's AABB by 2 to use as the radius for the havok sphere?
-
- Posts: 1691
- Joined: Sun May 18, 2008 9:42 pm
Okay, the convex size was what got confusing, but If I just build it with the half extents it should be fine.
That would be illogical captain...
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar
My first full game:
http://www.kongregate.com/games/3DModel ... tor#tipjar