how to get aabbox for a given node?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
lab_zj
Posts: 26
Joined: Wed May 21, 2008 3:25 am

how to get aabbox for a given node?

Post by lab_zj »

I have a empty node, and have many animationed mesh nodes include in it, but when I call getBounds(), it always return unit aabbox, not include any child's aabbox.

So, have any functions can get a node's aabbox (include all child's)?

thank you.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

an aabox in Irrlicht only contains the node itself, not child nodes. You have to go through the scene graph and create your own containing bbox.
Post Reply