//
// PlayerObject::runNormalRotation from 0x10021b6a0 to 0x10021b780 (224 bytes)
//
// 1 xrefs:
// > PlayerObject::runRotateAction @ 0x10021d494
//
// 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 __fastcall PlayerObject::runNormalRotation(PlayerObject *a1, bool a2, float a3)
{
int v3; // w9
float v4; // s2
if ( a2
|| !a1->m_isShip
&& !a1->m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isRobot
&& !a1->m_isSpider
&& !a1->m_isDashing
&& (!a1->m_isPlatformer
|| a1->m_holdingLeft
|| a1->m_holdingRight
|| a1->m_platformerMovingLeft
|| a1->m_platformerMovingRight) )
{
if ( a1->m_isUpsideDown )
v3 = -180;
else
v3 = 180;
if ( a1->m_isGoingLeft )
v3 = -v3;
v4 = (float)v3;
if ( a1->m_isSideways )
v4 = -(float)v3;
a1->m_rotationSpeed = (float)((float)(a1->m_gravityMod * v4) * a3) / flt_10063A7F0[a1->m_vehicleSize == 1.0];
a1->m_isRotating = 1;
}
}