// // GJBaseGameLayer::objectIntersectsCircle from 0x858f04 to 0x8590d4 (464 bytes) // // 2 xrefs: // > GJBaseGameLayer::playerCircleCollision @ 0x8591b0 // > @ 0x95c88 // // 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; // x0 float ObjectRadius; // s8 float v6; // s0 float v7; // s9 float v8; // s0 float v9; // s12 float v10; // s0 float v11; // s10 float v12; // s0 float v13; // s11 bool result; // w0 float v15; // s0 float v16; // s0 cocos2d::CCPoint v17; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v18; // [xsp+68h] [xbp+68h] BYREF cocos2d::CCPoint v19; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v20; // [xsp+78h] [xbp+78h] BYREF cocos2d::CCPoint v21; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCRect v22; // [xsp+88h] [xbp+88h] BYREF v4 = a2->getObjectRect(a2); cocos2d::CCRect::CCRect(&v22, v4); ObjectRadius = GameObject::getObjectRadius(a3); ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a3->getRealPosition)(&v17, a3); cocos2d::CCRect::getMaxX(&v22); v7 = v6; cocos2d::CCRect::getMinX(&v22); v9 = v8; cocos2d::CCRect::getMaxY(&v22); v11 = v10; cocos2d::CCRect::getMinY(&v22); v13 = v12; if ( (unsigned __int8)cocos2d::CCRect::containsPoint(&v22, &v17) ) return 1; cocos2d::CCPoint::CCPoint(&v18, v7, v11); if ( ObjectRadius > fabsf(cocos2d::ccpDistance(&v18, &v17)) ) return 1; cocos2d::CCPoint::CCPoint(&v19, v7, v13); v15 = cocos2d::ccpDistance(&v19, &v17); result = 1; if ( ObjectRadius <= fabsf(v15) ) { cocos2d::CCPoint::CCPoint(&v20, v9, v13); v16 = cocos2d::ccpDistance(&v20, &v17); result = 1; if ( ObjectRadius <= fabsf(v16) ) { cocos2d::CCPoint::CCPoint(&v21, v9, v11); return ObjectRadius > fabsf(cocos2d::ccpDistance(&v21, &v17)); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source