// // GJRotationControl::setAngle from 0x386734 to 0x3867bc (136 bytes) // // 1 xrefs: // > GJRotationControl::init @ 0x38682e // // 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 GJRotationControl::setAngle(GJRotationControl *a1, float a2) { PlayerObject *p_m_controlPosition; // r7 float v4; // s16 float v5; // s17 float v6; // r0 int v7; // r2 bool v8; // r3 cocos2d::CCPoint v9; // [sp+4h] [bp-10h] BYREF p_m_controlPosition = (PlayerObject *)&a1->m_controlPosition; a1->m_startingRotation = a2; a1->m_currentRotation = a2; v4 = -(float)(a2 * 0.017453); v5 = cosf(v4); v6 = sinf(v4); cocos2d::CCPoint::CCPoint(&v9, v5 * 60.0, v6 * 60.0); cocos2d::CCPoint::operator=(p_m_controlPosition, COERCE_FLOAT(&v9), v7, v8); a1->m_controlSprite->setPosition(a1->m_controlSprite, (const cocos2d::CCPoint *)p_m_controlPosition); }
GD Web Decomp Icon

GD Web Decomp

Raw Source