s_radiansToDegrees
global · glue
- Address
0x803a78· 4 bytes, up to0x803a7b- Type
float- Meaning
- Holds the f32 57.29578 (0x42652ee1) that turns the select facing into degrees
- Confidence
- verified, proof one
- Finding
- glue/select#facing-in-degrees
Finding: Facing in degrees in glue: character select
The facing is an f32 in radians at 0xb4217c. GetCharacterSelectFacing returns it times the
f32 57.29578 (0x803a78, 0x42652ee1) as a double. SetCharacterSelectFacing(degrees) passes
f32(degrees × 0.017453292), the f32 0x3c8efa35, the product at 53-bit precision, to
0x4730e0, and returns 1 with nothing pushed: the caller gets its own last argument. 0x4730e0
does nothing until the build counter 0xb42178 is nonzero; then it stores the facing and, with a
roster and a selected component model, sets that model's transform to a rotation by the facing
about (0, 0, 1), with no translation and scale 1 (0x710650). It never turns the pet.
The derivation is in the doc.