// // OBB2D::overlaps1Way from 0x2f2928 to 0x2f29c0 (152 bytes) // // 10 xrefs: // > OBB2D::overlaps @ 0x2f29c6 // > OBB2D::overlaps @ 0x2f29d4 // > GJBaseGameLayer::damagingObjectsInRect @ 0x46edbe // > GJBaseGameLayer::damagingObjectsInRect @ 0x46edce // > GJBaseGameLayer::checkCollisionBlocks @ 0x46fef4 // > GJBaseGameLayer::checkCollisionBlocks @ 0x46fefe // > GJBaseGameLayer::collisionCheckObjects @ 0x492534 // > GJBaseGameLayer::collisionCheckObjects @ 0x49253e // > GJBaseGameLayer::checkCollisions @ 0x493b6c // > GJBaseGameLayer::checkCollisions @ 0x493b76 // // 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 OBB2D::overlaps1Way(OBB2D *a1) { float *v1; // r1 std::array *p_m_edges; // r3 cocos2d::CCPoint *v3; // r0 float *v4; // r2 float y; // s8 float x; // s9 double v7; // d6 double v8; // d5 double v9; // d7 double v10; // d7 p_m_edges = &a1->m_edges; v3 = &a1->m_edges.__elems_[2]; while ( 1 ) { v4 = v1 + 69; y = p_m_edges->__elems_[0].y; v7 = (float)((float)(v1[67] * y) + (float)(v1[66] * p_m_edges->__elems_[0].x)); v8 = v7; do { x = p_m_edges->__elems_[0].x; v9 = (float)((float)(y * *v4) + (float)(p_m_edges->__elems_[0].x * *(v4 - 1))); if ( v9 < v8 ) { v8 = (float)((float)(y * *v4) + (float)(x * *(v4 - 1))); } else if ( v9 > v7 ) { v7 = (float)((float)(y * *v4) + (float)(x * *(v4 - 1))); } v4 += 2; } while ( v4 != v1 + 75 ); v10 = *(double *)p_m_edges[1].__elems_; if ( v8 > v10 + 1.0 || v7 < v10 ) break; p_m_edges = (std::array *)((char *)p_m_edges + 8); if ( p_m_edges == (std::array *)v3 ) return 1; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source