// // OBB2D::calculateWithCenter from 0x14006da80 to 0x14006dd9e (798 bytes) // // 11 xrefs: // > OBB2D::create @ 0x14006d9fb // > GameObject::updateOrientedBox @ 0x1401a16fe // > GJBaseGameLayer::updateGroundShadows @ 0x14020be54 // > GJBaseGameLayer::damagingObjectsInRect @ 0x1402116b9 // > GJBaseGameLayer::preUpdateVisibility @ 0x140236470 // > GJBaseGameLayer::preUpdateVisibility @ 0x1402364ec // > LevelEditorLayer::objectAtPosition @ 0x1402d50ea // > LevelEditorLayer::objectsAtPosition @ 0x1402d54af // > LevelEditorLayer::getObjectRect @ 0x1402d5b7e // > LevelEditorLayer::objectsInRect @ 0x1402d5d2e // > @ 0x1406c60c0 // // 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 // void OBB2D::calculateWithCenter(OBB2D *a1, cocos2d::CCPoint a2, float a3, float a4, float X) { float v7; // xmm7_4 float v8; // xmm6_4 float v9; // xmm0_4 float v10; // xmm6_4 float v11; // xmm0_4 cocos2d::CCPoint v12; // [rsp+20h] [rbp-60h] BYREF _BYTE v13[8]; // [rsp+28h] [rbp-58h] BYREF _BYTE v14[48]; // [rsp+30h] [rbp-50h] BYREF cocos2d::CCPoint v15; // [rsp+A0h] [rbp+20h] BYREF ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_center, a2); v7 = X; v8 = sinf(X); v9 = cosf(v7); cocos2d::CCPoint::CCPoint(&v15, v9, v8); v10 = cosf(v7); v11 = sinf(v7); cocos2d::CCPoint::CCPoint(&v12, -v11, v10); cocos2d::CCPoint::operator*(&v15, v13); cocos2d::CCPoint::operator=(&v15, v13); cocos2d::CCPoint::operator*(&v12, v13); cocos2d::CCPoint::operator=(&v12, v13); ((void (__fastcall *)(_QWORD, _QWORD, _QWORD))cocos2d::CCPoint::operator-)(a2, v13, &v15); cocos2d::CCPoint::operator-(v13, v14, &v12); cocos2d::CCPoint::operator=(&a1->m_corners, v14); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a2, v14); cocos2d::CCPoint::operator-(v14, v13, &v12); cocos2d::CCPoint::operator=(&a1->m_corners._Elems[1], v13); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(a2, v14); cocos2d::CCPoint::operator+(v14, v13); cocos2d::CCPoint::operator=(&a1->m_corners._Elems[2], v13); ((void (__fastcall *)(_QWORD, _QWORD, _QWORD))cocos2d::CCPoint::operator-)(a2, v14, &v15); cocos2d::CCPoint::operator+(v14, v13); cocos2d::CCPoint::operator=(&a1->m_corners._Elems[3], v13); cocos2d::CCPoint::operator-(&a1->m_corners._Elems[1], v14, &a1->m_corners); cocos2d::CCPoint::operator=(&a1->m_edges, v14); cocos2d::CCPoint::operator-(&a1->m_corners._Elems[3], v14, &a1->m_corners); cocos2d::CCPoint::operator=(&a1->m_edges._Elems[1], v14); cocos2d::CCPoint::operator*(&a1->m_edges, v13); cocos2d::CCPoint::operator=(&a1->m_edges, v13); a1->m_projections._Elems[0] = (float)((float)(a1->m_corners._Elems[0].y * a1->m_edges._Elems[0].y) + (float)(a1->m_corners._Elems[0].x * a1->m_edges._Elems[0].x)); cocos2d::CCPoint::operator*(&a1->m_edges._Elems[1], v13); cocos2d::CCPoint::operator=(&a1->m_edges._Elems[1], v13); a1->m_projections._Elems[1] = (float)((float)(a1->m_corners._Elems[0].y * a1->m_edges._Elems[1].y) + (float)(a1->m_corners._Elems[0].x * a1->m_edges._Elems[1].x)); OBB2D::orderCorners(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source