Hi
17.08.2011 Update!
See a attached demo file(orientation_b2581_0503.blend) on this post.
I added a two cosine’s to get smooth transitions. Now it’s spot on.
Comments?
Sample file contains a ‘ATTITUDE’ group, which contains a ATTITUDE, SENSOR1 & SENSOR2 objects, logics, properties and needed scripts.
NOTE! Do not move the SENSOR1 and SENSOR2 object’s relative the ATTITUDE object or the calculations will be in-accurate.
Feel free to use it.
--------------------------------------------------------------------------
ORIGINAL POST ON BELOW
Hi
I try to figure out this old problem again, how to get a ‘absolute axis angle values’ out from the orientation.
With ‘absolute axis angle values’ I mean a axis figures, which are not effected by other axis figures.
Lets assume,
the z-axis rotation is heading(where the nose is pointing) versus compass direction.
The x-axis rotation is plane pitch angle i.e. nose up/down versus horizon.
The y-axis rotation is plane roll angle i.e. rolling left/ right versus horizon.
Example 1
Plane compass heading is 45 deg or North-East. This heading figure should stay same, despite the plane pitch and/or roll angle, excluding the death vertical up/down situation.
Example 2
Plane is having a steady 15deg pitch climbing angle. During this climb the pilot is t performing a full roll (around y-axis) . The pitch angle(x-axis) figure should stay 15deg during this move, despite the roll attitude.
Got my point?
Any help to solve this orientation blues?
Attachments
orientation_b2581_0503.blend (373 KB)