Author Topic: Please have mercy upon the damned  (Read 438 times)

0 Members and 1 Guest are viewing this topic.

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Please have mercy upon the damned
What is the formula for translating player pitch/bank/heading (PBH) into background editor PBH?

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Please have mercy upon the damned
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)
I'm on Facebook! sort of. Zeesixtyfour Fivefiftyfive

-=wxFRED2=-
R.I.P. Oliver
------------
EveningTea: Time to go Freeman on this cultist..
* EveningTea pulls crowbar off his shoulderstrap and charges screaming incoherently across the marsh *
------------
z64555: bro. do you even salad
------------
z64555: suprise double quaternion!

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Please have mercy upon the damned
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?

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: Please have mercy upon the damned
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.
I'm on Facebook! sort of. Zeesixtyfour Fivefiftyfive

-=wxFRED2=-
R.I.P. Oliver
------------
EveningTea: Time to go Freeman on this cultist..
* EveningTea pulls crowbar off his shoulderstrap and charges screaming incoherently across the marsh *
------------
z64555: bro. do you even salad
------------
z64555: suprise double quaternion!