//
// GameObject::setRotation from 0x640db0 to 0x640eb0 (256 bytes)
//
// 48 xrefs:
// > PlayerObject::setRotation @ 0x620dd8
// > RingObject::setRotation @ 0x74a918
// > TeleportPortalObject::setRotation2 @ 0x74a91c
// > TeleportPortalObject::setRotation @ 0x750910
// > ParticleGameObject::setRotation @ 0x755490
// > ??> @ 0xbdf30
// > ??> @ 0x1153608
// > ??> @ 0x1153dd8
// > ??> @ 0x11545d8
// > ??> @ 0x1161f88
// > ??> @ 0x1162788
// > ??> @ 0x1162f88
// > ??> @ 0x1163788
// > ??> @ 0x1163f88
// > ??> @ 0x1164788
// > ??> @ 0x1164f88
// > ??> @ 0x1165788
// > ??> @ 0x1166758
// > ??> @ 0x1167f58
// > ??> @ 0x1168798
// > ??> @ 0x1168f98
// > ??> @ 0x1169798
// > ??> @ 0x1169f98
// > ??> @ 0x116afa8
// > ??> @ 0x116b7a8
// > ??> @ 0x116bfa8
// > ??> @ 0x116c7a8
// > ??> @ 0x116cfa8
// > ??> @ 0x116d7a8
// > ??> @ 0x116dfa8
// > ??> @ 0x116e7a8
// > ??> @ 0x116efa8
// > ??> @ 0x116f7a8
// > ??> @ 0x116ffa8
// > ??> @ 0x11707a8
// > ??> @ 0x1170fa8
// > ??> @ 0x11717a8
// > ??> @ 0x1171fa8
// > ??> @ 0x11727a8
// > ??> @ 0x1172fa8
// > ??> @ 0x11737a8
// > ??> @ 0x1173fa8
// > ??> @ 0x11747a8
// > ??> @ 0x1174fa8
// > ??> @ 0x11757a8
// > ??> @ 0x1175fa8
// > ??> @ 0x11767a8
// > ??> @ 0x1176fc8
//
// 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 GameObject::setRotation(GameObject *a1, float a2)
{
cocos2d::CCSprite *m_glowSprite; // x0
cocos2d::CCSprite *m_colorSprite; // x0
cocos2d::CCParticleSystemQuad *m_particle; // x0
if ( a1->m_fRotationX != a2 || a1->m_fRotationY != a2 )
{
a1->m_isObjectRectDirty = 1;
a1->m_isOrientedBoxDirty = 1;
a1->m_isDirty = 1;
CCSpritePlus::setRotation(a1, a2);
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
m_glowSprite->setRotation(m_glowSprite, a2);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
m_colorSprite->setRotation(m_colorSprite, a2);
m_particle = a1->m_particle;
if ( m_particle && !a1->m_particleLocked )
m_particle->setRotation(m_particle, a2);
a1->m_isRotationAligned = a2 == 90.0 || a2 == -90.0 || a2 == 270.0 || a2 == -270.0;
}
}