//
// ParticleGameObject::updateParticleAngle from 0x3e7268 to 0x3e7348 (224 bytes)
//
// 6 xrefs:
// > ParticleGameObject::applyParticleSettings @ 0x3e73f2
// > ParticleGameObject::setRotation @ 0x3e76d0
// > ParticleGameObject::setRotationX @ 0x3e76fa
// > ParticleGameObject::setRotationY @ 0x3e7724
// > ParticleGameObject::updateParticleScale @ 0x3e774c
// > ParticleGameObject::updateParticle @ 0x3e77de
//
// 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 ParticleGameObject::updateParticleAngle(ParticleGameObject *a1, float a2, cocos2d::CCParticleSystemQuad *a3)
{
float v6; // s16
float v7; // r8
float v8; // r0
float v9; // r0
cocos2d::CCPoint v10; // [sp+4h] [bp-20h] BYREF
cocos2d::CCPoint v11; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCPoint x; // [sp+14h] [bp-10h] BYREF
if ( a3 )
{
if ( a1->m_isParticleSpriteLocked
&& (((int (__fastcall *)(ParticleGameObject *))a1->isFlipX)(a1)
|| ((int (__fastcall *)(ParticleGameObject *))a1->isFlipY)(a1)) )
{
v6 = a3->m_fDefaultAngle * 0.017453;
v7 = cosf(v6);
v8 = sinf(v6);
cocos2d::CCPoint::CCPoint(&x, v7, v8);
cocos2d::CCNode::convertToWorldSpace(&v10, a1, &x);
cocos2d::CCNode::convertToWorldSpace(&v11, a1, &stru_AC6038);
cocos2d::CCPoint::operator-(&x, &v10, &v11);
v9 = atan2f(x.y, x.x);
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a3->setAngle)(a3, v9 * 57.296);
}
else
{
((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _DWORD))a3->setAngle)(a3, a3->m_fDefaultAngle - a2);
}
}
}