Collision - Detecting the Node Size

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
hoffhoff
Posts: 17
Joined: Fri Mar 10, 2006 11:55 am

Collision - Detecting the Node Size

Post 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
persoontje
Posts: 2
Joined: Sat Mar 25, 2006 8:47 pm

code

Post by persoontje »

Here is a rar containing all the code:
http://www.vinoblesse.nl/~didier/boomwar.rar
Post Reply