//
// GameObject::setRotationY from 0x1401980a0 to 0x14019819b (251 bytes)
//
// 48 xrefs:
// > ??> @ 0x140556520
// > ??> @ 0x140556c90
// > ??> @ 0x14055dcc8
// > ??> @ 0x14055e348
// > ??> @ 0x1405c83e0
// > ??> @ 0x14060dec0
// > ??> @ 0x14060e5e0
// > ??> @ 0x14060ee18
// > ??> @ 0x14060f4c0
// > ??> @ 0x14060fb90
// > ??> @ 0x140610248
// > ??> @ 0x140610990
// > ??> @ 0x1406111f0
// > ??> @ 0x140611928
// > ??> @ 0x140612110
// > ??> @ 0x1406127b8
// > ??> @ 0x140612e60
// > ??> @ 0x1406135d0
// > ??> @ 0x140613c78
// > ??> @ 0x140614460
// > ??> @ 0x140614c98
// > ??> @ 0x1406153e0
// > ??> @ 0x140615a88
// > ??> @ 0x1406161d0
// > ??> @ 0x140616990
// > ??> @ 0x140617038
// > ??> @ 0x1406176e0
// > ??> @ 0x140617e50
// > ??> @ 0x1406184f8
// > ??> @ 0x140618c40
// > ??> @ 0x1406196e0
// > ??> @ 0x140619d88
// > ??> @ 0x14061a430
// > ??> @ 0x14061ab50
// > ??> @ 0x14061b1f8
// > ??> @ 0x14061b940
// > ??> @ 0x14061c0d8
// > ??> @ 0x14061c780
// > ??> @ 0x14061ce28
// > ??> @ 0x14061d4d0
// > ??> @ 0x14061db78
// > ??> @ 0x14061e220
// > ??> @ 0x14061e8c8
// > ??> @ 0x14061f0d8
// > ??> @ 0x14061f870
// > ??> @ 0x140678e0c
// > ??> @ 0x140678e1c
// > ??> @ 0x1406cbb2c
//
// 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::setRotationY(GameObject *a1, float a2)
{
unsigned int i; // edi
struct cocos2d::CCObject *v4; // rax
cocos2d::CCSprite *m_glowSprite; // rcx
cocos2d::CCSprite *m_colorSprite; // rcx
cocos2d::CCParticleSystemQuad *m_particle; // rcx
if ( a1->m_fRotationY != a2 )
{
*(_WORD *)&a1->m_isObjectRectDirty = 257;
a1->m_isDirty = 1;
cocos2d::CCSprite::setRotationY(a1, a2);
if ( a1->m_hasFollower )
{
for ( i = 0; i < cocos2d::CCArray::count(a1->m_followers); ++i )
{
v4 = cocos2d::CCArray::objectAtIndex(a1->m_followers, i);
v4->__vftable[5].~CCObject(v4);
}
}
m_glowSprite = a1->m_glowSprite;
if ( m_glowSprite )
((void (__fastcall *)(cocos2d::CCSprite *))m_glowSprite->setRotationY)(m_glowSprite);
m_colorSprite = a1->m_colorSprite;
if ( m_colorSprite && !a1->m_colorSpriteLocked )
((void (__fastcall *)(cocos2d::CCSprite *))m_colorSprite->setRotationY)(m_colorSprite);
m_particle = a1->m_particle;
if ( m_particle )
{
if ( !a1->m_particleLocked )
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))m_particle->setRotationY)(m_particle);
}
}
}