- Joined
- Feb 2, 2012
- Messages
- 1,667
- Reaction score
- 115
- Points
- 78
Hi all,
I'm experiencing something that I am not able to figure out.
Obiective:
I need to determine the eastward component of my velocity vector.
I am able to get the relative velocity of the ship in local vessel frame, so everything is fine up to his. Now my idea is to simply use HorizonRot to get and get the X component of the result.
But this does not work fine for me and I give you this example.
I am landed on a certain point of the planet (latitude 36.7°), pointing north.
My local speed vector has of course as expected only the X component, to the right: v=(373,0,0)
Then performing a HorizonRot on this vector, since I have only a eastward speed I expect to obtain a vector with only a X component, so the very same vector v=(373,0,0), but what I get is:
v= 359.7 , -97.06 , 0
How can this be possible? Y component is "up" as per orbiter api, but I am landed, so no "up" component should be present.
Thanks in advance for any help! :tiphat:
I'm experiencing something that I am not able to figure out.
Obiective:
I need to determine the eastward component of my velocity vector.
I am able to get the relative velocity of the ship in local vessel frame, so everything is fine up to his. Now my idea is to simply use HorizonRot to get and get the X component of the result.
But this does not work fine for me and I give you this example.
I am landed on a certain point of the planet (latitude 36.7°), pointing north.
My local speed vector has of course as expected only the X component, to the right: v=(373,0,0)
Then performing a HorizonRot on this vector, since I have only a eastward speed I expect to obtain a vector with only a X component, so the very same vector v=(373,0,0), but what I get is:
v= 359.7 , -97.06 , 0
How can this be possible? Y component is "up" as per orbiter api, but I am landed, so no "up" component should be present.
Thanks in advance for any help! :tiphat: