i found a strang problem . It's a problem about ISceneNode::setPosition and the scene node's bounding box . Maybe if you are familiar with Irrlicht, you already can guess what problem i 'm facing .
The problem is:
1.i add a scene node to the scene graph:
Code: Select all
mNode = smgr->addAnimatedMeshSceneNode( mesh );
Code: Select all
mNode->setPosition( vector3df( 1000, 0, 100 ) );
Code: Select all
aabbox3df box = mNode->getTransformedBoundingBox();
The problem is, the box always around the origin point. But later:
Code: Select all
mNode->setPosition( somewhere );
I searched in the forum , and i found updateAbsolutePosition(). So when i set a new position to a scene node, i should :
Code: Select all
mNode->updateAbsolutePosition();
Thanks in advance.