// // GJRotationControl::setAngle from 0x1003fa8fc to 0x1003fa974 (120 bytes) // // 1 xrefs: // > GJRotationControl::init @ 0x1003fa8e4 // // 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 __fastcall GJRotationControl::setAngle(GJRotationControl *a1, float a2) { __n128 v3; // q1 __n128 v4; // q0 double v5; // d0 double v6; // [xsp+8h] [xbp-18h] BYREF __float2 v7; // 0:kr00_8.8 a1->m_startingRotation = a2; a1->m_currentRotation = a2; v7 = __sincosf_stret(a2 * -0.017453); v3.n128_f32[0] = v7.__sinval * 60.0; v4.n128_f32[0] = v7.__cosval * 60.0; sub_100022980(v4, v3, &v6); v5 = sub_1000229D0(&a1->m_controlPosition, &v6); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)( a1->m_controlSprite, &a1->m_controlPosition, v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source