Page 1 of 1

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

Posted: Tue Sep 13, 2005 8:59 pm
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.

Posted: Fri Sep 16, 2005 8:01 pm
by gershon
so i used setDebugDataVisible() and figured out i need do use updateAbsolutePosition() on my node :) .