Hello forum.
From the API Reference:
What does it mean by "local coordinates"?
If my vessel is orbiting Sun (its rbody is Sun), so relative direction to Sun is local coordinates?
I need to turn my Vessel directly to Sun, and I've tried with this function (converting [0 0 0] direction to Global Rotation) but it doesn't help (converted rotation wasn't to Sun... and error wasn't in 90 or 180 degrees)
From the API Reference:
GlobalRot
Performs a rotation of a direction from the local vessel frame to the global frame.
Synopsis:
void GlobalRot (
const VECTOR3 &rloc,
VECTOR3 &rrot) const
Parameters:
rloc point in local vessel coordinates (input)
rrot rotated point (output)
What does it mean by "local coordinates"?
If my vessel is orbiting Sun (its rbody is Sun), so relative direction to Sun is local coordinates?
I need to turn my Vessel directly to Sun, and I've tried with this function (converting [0 0 0] direction to Global Rotation) but it doesn't help (converted rotation wasn't to Sun... and error wasn't in 90 or 180 degrees)
Last edited: