Support SetMembersPosRotOnEVA (UMMU sdk)

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
11,324
Reaction score
2,806
Points
203
Location
between the planets
Can somebody tell me how the second parameter in SetMembersPosRotOnEVA is supposed to work? It's definitely not a directional vector as Orbiter uses it. I tried to play around with it to predict what vectors result in what orientation, but I can't seem to get behind it. I'm baffeled by the result every time.
 
It's been a while since I used the UMMU SDK, but this is taken from UMmuSDK.h:

Code:
    BOOL SetMembersPosRotOnEVA(VECTOR3 Pos,VECTOR3 Rot);    // set member position and rotation when EVA. Return TRUE of ok
Looks like the second parameter is a vector containing the amount by which the MMU should be rotated in each of the 3 axes. I believe that VECTOR3(0,0,0) is facing the ship with "top" matching the vessel local reference frame, but I do not recall if the amount of rotation is specified in radians or something else entirely.

-- Mike
 
Last edited:
You are right, it seems to be angle of rotation around the 3 axes in radians. A bit confusing when you're used to having rotation defined in normalised vectors as Orbiter usually does for such things...
 
Not really confusing if you ask me. It's relative to the dock/airlock from which the UMMU is entering/exiting. Same as defining which way is "up" for a dock in a config file, you're defining which way is "up" for the UMMU when it exits said dock.
 
Back
Top