// // GJBaseGameLayer::modifyObjectPhysics from 0x475340 to 0x475446 (262 bytes) // // 1 xrefs: // > GJBaseGameLayer::modifyGroupPhysics @ 0x47f1da // // 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 GJBaseGameLayer::modifyObjectPhysics(GJBaseGameLayer *a1, AdvancedFollowEditObject *a2, GameObjectPhysics *a3) { float m_modX; // s17 float m_modXVariance; // s16 float v8; // s17 float m_modY; // s16 float m_modYVariance; // s18 float v11; // r0 float v12; // s15 float m_startSpeed; // s16 float m_startSpeedVariance; // s17 float v15; // s16 float m_startDirection; // s17 float m_startDirectionVariance; // s18 float v18; // r0 cocos2d::CCPoint v19; // [sp+14h] [bp-10h] BYREF m_modX = a2->m_modX; m_modXVariance = a2->m_modXVariance; v8 = m_modX + (float)(m_modXVariance * GameToolbox::fast_rand_0_1()); m_modY = a2->m_modY; m_modYVariance = a2->m_modYVariance; v11 = GameToolbox::fast_rand_0_1(); a3->m_unkPoint1.x = a3->m_unkPoint1.x * v8; v12 = a3->m_unkPoint1.y * (float)(m_modY + (float)(m_modYVariance * v11)); m_startSpeed = a2->m_startSpeed; m_startSpeedVariance = a2->m_startSpeedVariance; a3->m_unkPoint1.y = v12; v15 = m_startSpeed + (float)(m_startSpeedVariance * GameToolbox::fast_rand_0_1()); if ( v15 != 0.0 ) { m_startDirection = a2->m_startDirection; m_startDirectionVariance = a2->m_startDirectionVariance; v18 = GameToolbox::fast_rand_0_1(); GJBaseGameLayer::getFollowSpeedVal( &v19, a1, a3->m_gameObject, a2->m_startSpeedReference, a2->m_startDirectionReference, m_startDirection + (float)(m_startDirectionVariance * v18), v15); if ( !a2->m_xOnly ) a3->m_unkPoint1.y = a3->m_unkPoint1.y + v19.y; if ( !a2->m_yOnly ) a3->m_unkPoint1.x = a3->m_unkPoint1.x + v19.x; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source