- Joined
- Feb 6, 2008
- Messages
- 37,588
- Reaction score
- 2,312
- Points
- 203
- Location
- Wolfsburg
- Preferred Pronouns
- Sire
Nah, Im not thirsty :lol:
Well, was an offer. You know, Germans can turn everything into beer. Which is why the miracle of Benedict XVI of turning water into beer will not be accepted for beatifying him.
Into its component values. A lot of utilities in the OrbiterAPI return information in vector form, but I need to be able to get it into a more useable form ( flight displays, Gs of acceleration, etc.)
In the simplest form, you can use:
Code:
VECTOR3 v;
x = v.x;
y = v.y;
z = v.z;
Or for other tasks in math:
Code:
x = v.data[0];
y = v.data[1];
z = v.data[2];
If you need the acceleration in direction of your pilots spine, you could calculate:
Code:
VECTOR3 a, spine_axis;
double a_spine = dotp(a, spine_axis);
With spine_axis being a direction vector (length=1.0) with the reference direction. (useful for flight medical considerations of doing hypersonic aerobatics)