I have a few agents flying around in my game world, but I'm not satisfied with their rotation. Basically, they don't seem to know the difference between up and down
This is what I do on each update:
Code: Select all
agentSceneNode->setOrientation(mInitialHeading.getRotationTo(mVelocity));
My guess is that I might need a few more lines of code to stop the agent from turning upside down. Is there a simple way to limit roll? They should roll a little, but not all the way around.