//
// PlayerObject::updateSlopeRotation from 0x625b90 to 0x625c0c (124 bytes)
//
// 3 xrefs:
// > PlayerObject::updateRotation @ 0x625c58
// > PlayerObject::collidedWithSlopeInternal @ 0x6383b4
// > ??> @ 0x64128
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void PlayerObject::updateSlopeRotation(PlayerObject *a1, float a2)
{
float v4; // s0
float v5; // s1
v4 = a1->m_slopeRotation * 57.2957802;
v5 = PlayerObject::convertToClosestRotation(a1, v4);
if ( a1->m_isPlatformer && a1->m_maybeChangedDirectionAngle > 80.0 )
{
if ( a1->m_platformerMovingLeft )
{
v5 = 0.0;
}
else if ( a1->m_platformerMovingRight )
{
v5 = 0.0;
}
}
PlayerObject::updateRotation(a1, a2, v5);
}