// // GJBaseGameLayer::objectIntersectsCircle from 0x46e600 to 0x46e746 (326 bytes) // // 1 xrefs: // > GJBaseGameLayer::playerCircleCollision @ 0x46e7de // // 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 // bool GJBaseGameLayer::objectIntersectsCircle(GJBaseGameLayer *a1, GameObject *a2, GameObject *a3) { const cocos2d::CCRect *v4; // r0 float ObjectRadius; // s16 float v6; // r10 float v7; // r8 float v8; // r7 float v9; // r9 cocos2d::CCPoint v11; // [sp+4h] [bp-3Ch] BYREF cocos2d::CCPoint v12; // [sp+Ch] [bp-34h] BYREF cocos2d::CCPoint v13; // [sp+14h] [bp-2Ch] BYREF cocos2d::CCPoint v14; // [sp+1Ch] [bp-24h] BYREF cocos2d::CCPoint v15; // [sp+24h] [bp-1Ch] BYREF cocos2d::CCRect v16; // [sp+2Ch] [bp-14h] BYREF v4 = a2->getObjectRect(a2); cocos2d::CCRect::CCRect(&v16, v4); ObjectRadius = GameObject::getObjectRadius(a3); a3->getRealPosition(&v11, a3); v6 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(&v16)); v7 = COERCE_FLOAT(cocos2d::CCRect::getMinX(&v16)); v8 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(&v16)); v9 = COERCE_FLOAT(cocos2d::CCRect::getMinY(&v16)); if ( cocos2d::CCRect::containsPoint(&v16, &v11) ) return 1; cocos2d::CCPoint::CCPoint(&v12, v6, v8); if ( fabsf(cocos2d::ccpDistance(&v12, &v11)) < ObjectRadius ) return 1; cocos2d::CCPoint::CCPoint(&v13, v6, v9); if ( fabsf(cocos2d::ccpDistance(&v13, &v11)) < ObjectRadius ) return 1; cocos2d::CCPoint::CCPoint(&v14, v7, v9); if ( fabsf(cocos2d::ccpDistance(&v14, &v11)) < ObjectRadius ) return 1; cocos2d::CCPoint::CCPoint(&v15, v7, v8); return fabsf(cocos2d::ccpDistance(&v15, &v11)) < ObjectRadius; }
GD Web Decomp Icon

GD Web Decomp

Raw Source