Orientation in space
Posted: 24.10.2010, 09:36
Hello,
To improve my script generator I need to know how to calculate two angles during a rotation.
I get the initial rotation and final rotation with the instructions
and later
The two angles I need are
The mathematical considerations on quaternions are beyond my understanding.
I just need to know how I can do with the instructions available in a celx script.
Can anyone help me?
To improve my script generator I need to know how to calculate two angles during a rotation.
I get the initial rotation and final rotation with the instructions
Code: Select all
start_orientation = observer:getorientation()
and later
Code: Select all
end_orientation = observer:getorientation()
The two angles I need are
- - Angle alpha between the two directions of vue
- The spin angle theta between the starting and the ending direction.
The mathematical considerations on quaternions are beyond my understanding.
I just need to know how I can do with the instructions available in a celx script.
Can anyone help me?