math problem
Posted: Fri Sep 07, 2007 6:05 pm
I guess i have a mathematics problem but perhaps, there is a better way in Irrlicht to get what I want:
I want a aabbox3df to follow a scene node (not the bounding box). All i've got is a matrix4 where the rotation and translation of the node is stored. So i can get matrix4->getRotationDegrees() and matrix4->getTranslation().
Here is my code:
I'm sure i get the right information because with this actmat matrix i also change the position and rotation of my scenenode.
I also tried to transform the MinEdge and MaxEdge vectors of aabbox3df but it didn't work either
I want a aabbox3df to follow a scene node (not the bounding box). All i've got is a matrix4 where the rotation and translation of the node is stored. So i can get matrix4->getRotationDegrees() and matrix4->getTranslation().
Here is my code:
Code: Select all
void Update() // not an Irrlicht Update function
{
actmat.getTransformInformation();
lastmat.transformBox(physbox);
actmat.transformBox(physbox);
actmat.getInverse(lastmat);
}
I also tried to transform the MinEdge and MaxEdge vectors of aabbox3df but it didn't work either