->get(Transformed)BoundingBox() ???

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
gershon
Posts: 10
Joined: Tue Aug 30, 2005 7:50 pm
Location: Israel

->get(Transformed)BoundingBox() ???

Post by gershon »

tried using getTransformedBoundingBox() and things displayed all wrong...

thought of setting : driver->setTransform() to world\view\projection
neither worked...

ended up using local coordinates and non-transformed box

driver->setTransform( ETS_WORLD, node->getAbsolutePosition() );
driver->draw3DBox ( node->getBoundingBox(), white );

works ok but the perspective is weird and in certain camera angles the box does'nt fit the node.
Same same but diffrent.
gershon
Posts: 10
Joined: Tue Aug 30, 2005 7:50 pm
Location: Israel

Post by gershon »

so i used setDebugDataVisible() and figured out i need do use updateAbsolutePosition() on my node :) .
Same same but diffrent.
Post Reply