// // OBB2D::calculateWithCenter from 0x6aea6c to 0x6aec38 (460 bytes) // // 8 xrefs: // > OBB2D::init @ 0x6aecb0 // > GameObject::updateOrientedBox @ 0x770f14 // > LevelEditorLayer::getObjectRect @ 0x789e9c // > GJBaseGameLayer::updateGroundShadows @ 0x999a60 // > GJBaseGameLayer::updateOBB2 @ 0x99cf00 // > GJBaseGameLayer::preUpdateVisibility @ 0x9d9edc // > GJBaseGameLayer::preUpdateVisibility @ 0x9d9f3c // > @ 0xe2648 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:50:49 +0000 // __int64 __fastcall OBB2D::calculateWithCenter(OBB2D *a1, __int64 a2, float a3, float a4, float a5) { float v10; // s10 float v11; // s9 long double v12; // q0 long double v13; // q0 long double v14; // q0 long double v15; // q0 long double v16; // q0 _BYTE v18[8]; // [xsp+78h] [xbp+78h] BYREF _BYTE v19[8]; // [xsp+80h] [xbp+80h] BYREF __int64 v20; // [xsp+88h] [xbp+88h] BYREF __int64 v21; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint::operator=((char *)a1 + 432, a2); v10 = cosf(a5); v11 = sinf(a5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v10, v11); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, -v11, v10); cocos2d::CCPoint::operator*(v18, a3 * 0.5); cocos2d::CCPoint::operator=(v18, &v21); cocos2d::CCPoint::operator*(v19, a4 * 0.5); *(__n128 *)&v12 = cocos2d::CCPoint::operator=(v19, &v21); cocos2d::CCPoint::operator-(&v20, a2, v18, v12); cocos2d::CCPoint::operator-(&v21, &v20, v19, v13); cocos2d::CCPoint::operator=((char *)a1 + 316, &v21); cocos2d::CCPoint::operator+(&v20, a2); cocos2d::CCPoint::operator-(&v21, &v20, v19, v14); cocos2d::CCPoint::operator=((char *)a1 + 324, &v21); cocos2d::CCPoint::operator+(&v20, a2); cocos2d::CCPoint::operator+(&v21, &v20); *(__n128 *)&v15 = cocos2d::CCPoint::operator=((char *)a1 + 332, &v21); cocos2d::CCPoint::operator-(&v20, a2, v18, v15); cocos2d::CCPoint::operator+(&v21, &v20); *(__n128 *)&v16 = cocos2d::CCPoint::operator=((char *)a1 + 340, &v21); OBB2D::computeAxes(a1, v16); OBB2D::orderCorners(a1); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source