Like most of you are aware the axis orientation of Panda is setup using Heading, Pitch and Roll. Using just Heading and Pitch any direction is possible in 3D space.
So you can imagine a Sphere with Heading as longitudinal lines and Pitch as latitude lines starting with 0 and going to 90 at the north pole, -90 at the south pole.
The problem here is that as one approaches pitch of 90 or -90 the 360 of heading is a smaller circle than it was at the equator.
Usually this is no big deal but, I now want to use panda’s HPR system to steer a vehicle in 3D space. I modify heading and pitch independantly but as pitch goes to 90 degrees, any modification of heading moves the craft in a tight circle.
The system is set up the way an orange is. The segments are thick in the middle and peak at the ends.
I would like a system were the user who is steering is oblivious to the orange system. Where left is aways left and right,-right, up aways up. etc. no matter what the orientation of the object was before the user started steering.
Anyone have a solution to this?
Here’s what I’ve tried (aka. here’s what didn’t work)
I put a dummy node out in front, a child to the steered object. When the user turned left, the dummy node still in front of the steered object moved to the left.
Then two commands were issued in this order:
- the steered object was placed where the dummy was.
2)the steered object then looked at the dummy.
I tried various variations of this but it didn’t help.
I’d greatly appreciate any help. I hope I’ve explained the problem properly.