Page 1 of 1

Collision - Detecting the Node Size

Posted: Sat Mar 25, 2006 8:48 pm
by hoffhoff
Hello,
I have loaded two models here, and I want to make their collision.
The collision is ok, but the models looks more fat than what they really are.

I tried what is shown at API:

core::aabbox3d<f32> box = yourSceneNode->getBoundingBox();
core::vector3df radius = box.MaxEdge - box.getCenter();

but the radius returned is bigger than the real one.

Does it work only for balls and boxes?
I have a tree, and it´s much bigger on Y axis than in X or Z



Thanks

code

Posted: Sat Mar 25, 2006 8:59 pm
by persoontje
Here is a rar containing all the code:
http://www.vinoblesse.nl/~didier/boomwar.rar