// // OBB2D::create from 0x58d8e4 to 0x58da54 (368 bytes) // // 5 xrefs: // > GameObject::updateOrientedBox @ 0x648174 // > LevelEditorLayer::init @ 0x67c758 // > GJBaseGameLayer::init @ 0x893d34 // > GJBaseGameLayer::init @ 0x893d5c // > @ 0x8e3c8 // // 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 // OBB2D *OBB2D::create(cocos2d::CCPoint a1, float a2, float a3, float a4) { const cocos2d::CCPoint *v4; // x0 const cocos2d::CCPoint *v5; // x23 float x; // s10 float y; // s9 OBB2D *v9; // x20 cocos2d::CCPoint *elems; // x19 float v11; // s3 float v12; // s4 OBB2D_vtbl *v13; // x1 OBB2D *v14; // x0 cocos2d::CCPoint v16; // [xsp+50h] [xbp+50h] BYREF cocos2d::CCPoint v17; // 0:s0.4,4:s1.4 v5 = v4; x = a1.x; y = a1.y; v9 = (OBB2D *)operator new(0x1B8u); memset(v9, 0, sizeof(OBB2D)); cocos2d::CCNode::CCNode(v9); elems = v9->m_corners.__elems_; v9->__vftable = (OBB2D_vtbl *)&off_113DAF0; do cocos2d::CCPoint::CCPoint(elems++); while ( elems != (cocos2d::CCPoint *)&v9->m_positions ); do cocos2d::CCPoint::CCPoint(elems++); while ( elems != (cocos2d::CCPoint *)&v9->m_edges ); do cocos2d::CCPoint::CCPoint(elems++); while ( elems != (cocos2d::CCPoint *)(&v9->m_edges + 1) ); cocos2d::CCPoint::CCPoint(&v9->m_center); cocos2d::CCPoint::CCPoint(&v16, v5); v17.x = x; v17.y = y; if ( OBB2D::init(v9, v17, a2, v11, v12) ) { cocos2d::CCObject::autorelease(v9); } else { v13 = v9->__vftable; v14 = v9; v9 = nullptr; v13->~OBB2D_0(v14); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source