Situation:
I have a 'pallet', which is an AnimatedMeshSceneNode, with an emptySceneNode as parent. It's position is correct.
I also have a 'box', which also is an AnimatedMeshSceneNode, with the pallet as parent. This box has a weird absolute position.
Code: Select all
emptySceneNode->addChild(pallet);
pallet->setPosition(RelativePositionPallet);
pallet->addChild(box);
box->setPosition(RelativePositionBox);
box->updateAbsolutePosition();
vector3df AbsolutePos = box->getAbsolutePosition();
Absolute position pallet: (118, -36 , -410)
Relative position box: (-5, 10, -4)
Absolute position box: (68, -10, -475)
How is this possible? What am I doing wrong?