The only example of this I could find was viewtopic.php?f=9&t=12309&p=41319&hilit ... ile#p41319.
I was unable to find a getLocalInverseZAxis method in my graphics engine. I don't understand what it should do either.
Code: Select all
ENG_Vector4D missileDirection = missileProperties.getNode().getLocalInverseZAxis();
Code: Select all
btVector3 missileDirection = newMissileDirection - mShipNode->getPosition());
My cosAngle is never greater than 0.99. I had to set to 'if (cosAngle > 0.09)' to get the rotation I am getting.