Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: General Battuta on October 27, 2015, 06:42:10 pm
-
What is the formula for translating player pitch/bank/heading (PBH) into background editor PBH?
-
Pitch is positive. 0 through 360 degrees rotates upward
Bank is positive (rotates graphic clockwise about its center)
Heading is... negative? Positive values rotate it towards the left.
Degrees to Radians = (degrees) * (pi / 180)
Radians to Degrees = (radians) * (180 / pi)
-
Okay, cool.
If I have a set of player PBH values measured in-game (where the player's nose is pointing), how can I translate those into background PBH values?
-
Okay, cool.
If I have a set of player PBH values measured in-game (where the player's nose is pointing), how can I translate those into background PBH values?
If the player's angles are in degrees, P would be equal, H would be equal and negative, and B would be equal. I haven't found a direct correlation between the angles yet, so I'm pretty much shooting blind here.