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.
![Confused :?](./images/smilies/icon_confused.gif)
I just need to know how I can do with the instructions available in a celx script.
Can anyone help me?
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)