//
// EnhancedGameObject::createRotateAction from 0x3609dc to 0x360a50 (116 bytes)
//
// 6 xrefs:
// > EnhancedGameObject::refreshRotateAction @ 0x360a58
// > EnhancedGameObject::customObjectSetup @ 0x360aec
// > EnhancedGameObject::customSetup @ 0x3613f2
// > EnhancedGameObject::customSetup @ 0x361800
// > EnhancedGameObject::customSetup @ 0x3618b2
// > EnhancedGameObject::customSetup @ 0x361946
//
// 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 EnhancedGameObject::createRotateAction(EnhancedGameObject *a1, float a2, int a3)
{
float m_rotationSpeed; // s16
m_rotationSpeed = a2;
if ( a2 != 0.0 )
a1->m_rotationAngle = a2;
if ( a1->m_rotationSpeed == 0.0 )
{
if ( !a3 )
{
if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.5 )
a3 = -1;
else
a3 = 1;
}
}
else
{
m_rotationSpeed = a1->m_rotationSpeed;
a3 = 1;
}
a1->m_rotationDelta = m_rotationSpeed * (float)a3;
}