How to rotate View, but *not* rotate ViewPlatform? Head rotate?
I have a nice little KeyNavigatorBehavior that rotates and translates the ViewPlatform and lets me move in the x, y, and z directions. I can also rotate about the y axis to make left or right turns and then move along the new direction. No problem there.
The problem comes when I rotate up or down (about the x axis.) If I rotate up, and then try to move forward, I move along the upward line of sight and fly off the ground. How can I 'look up' but still keep my feet on the ground when I move?
It seems like I want to rotate View instead of ViewPlatform. But I don't know how to access or set View's transform.
I thought I was on to something with the PhysicalBody methods get/setHeadToHeadTrackerTransform(Transform t). But that transform is supposed to be some kind of constant calibration tied to some sort of head-tracking sensor. That's getting me into an area I know absolutely nothing about. I just want to make it respond to the pageUp and pageDn keys.
Am I going about this all wrong? Is there a simple way to do this?