Orientation in space

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Orientation in space

Post #1by jogad » 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

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.
Here's a quick sketch to explain
orientation.png

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? :mrgreen:

Avatar
Topic author
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Orientation in space

Post #2by jogad » 01.11.2010, 09:02

Hello,

Let me try again by asking the question differently.

I have 2 rotations rot1 and rot2 (stored in Celestia as quaternion about which I do not understand anything :oops: )

How do I find the rotation that gives rot2 starting from rot1 :?:
:mrgreen:

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Orientation in space

Post #3by John Van Vliet » 02.11.2010, 09:51

--- edit ---


Return to “Help Central”