The problem
When I attach (Overlay::add3D) the "arrow" SceneNode to the 3D Hud Overlay and set the AutoTracking to a valid node, the arrow spins about violently. However, if I do not attach the node to the overlay the arrow works properly.
Code: Select all
// Hud 3D
mOverlayHud3D = (Overlay*)OverlayManager::getSingleton().getByName("Hud/3D");
EntityArrowTargetVector = mSceneMgr->createEntity("ArrowTargetVector", "vectorarrow.mesh");
NodeArrowTargetVector = mSceneMgr->createSceneNode(EntityArrowTargetVector->getName());
NodeArrowTargetVector->attachObject(EntityArrowTargetVector);
NodeArrowTargetVector->getMaterial()->setDepthCheckEnabled( false );
mOverlayHud3D->add3D(NodeArrowTargetVector);
NodeArrowTargetVector->setPosition(0,-12,-125);
NodeArrowTargetVector->setVisible(false);
NodeArrowTargetVector->setAutoTracking(true,MySpaceShip->CurrentTarget->Node);
NodeArrowTargetVector->setVisible(true);
Any suggestions?

