// // OBB2D::calculateWithCenter from 0x10012cd40 to 0x10012ceb8 (376 bytes) // // 7 xrefs: // > OBB2D::init @ 0x10012cd1c // > GJBaseGameLayer::updateGroundShadows @ 0x1001de4ac // > GJBaseGameLayer::updateOBB2 @ 0x1001e57ac // > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd66c // > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd6c4 // > GameObject::updateOrientedBox @ 0x1002619e0 // > LevelEditorLayer::getObjectRect @ 0x10035b174 // // 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 __fastcall OBB2D::calculateWithCenter(OBB2D *a1, cocos2d::CCPoint a2, float a3, float a4, float a5) { double *v5; // x1 float y; // s9 float x; // s10 float32x2_t *v9; // x20 __n128 v11; // q0 __n128 v12; // q1 __n128 v13; // q0 __n128 v14; // q1 float32x2_t v15; // [xsp+0h] [xbp-50h] BYREF float32x2_t v16; // [xsp+8h] [xbp-48h] BYREF float32x2_t v17; // [xsp+10h] [xbp-40h] BYREF float32x2_t v18; // [xsp+18h] [xbp-38h] BYREF __float2 v19; // 0:kr00_8.8 y = a2.y; x = a2.x; v9 = (float32x2_t *)v5; sub_1000229D0(&a1->m_center, v5); v19 = __sincosf_stret(a3); v11.n128_u32[0] = LODWORD(v19.__cosval); v12.n128_u32[0] = LODWORD(v19.__sinval); sub_100022980(v11, v12, &v18); v13.n128_f32[0] = -v19.__sinval; v14.n128_u32[0] = LODWORD(v19.__cosval); sub_100022980(v13, v14, &v17); sub_100022A14(&v18, &v16, x * 0.5); sub_1000229D0(&v18, (double *)&v16); sub_100022A14(&v17, &v16, y * 0.5); sub_1000229D0(&v17, (double *)&v16); sub_1000229F0(v9, &v18, &v15); sub_1000229F0(&v15, &v17, &v16); sub_1000229D0(&a1->m_corners, (double *)&v16); sub_1000229DC(v9, &v18, &v15); sub_1000229F0(&v15, &v17, &v16); sub_1000229D0(&a1->m_corners.__elems_[1], (double *)&v16); sub_1000229DC(v9, &v18, &v15); sub_1000229DC(&v15, &v17, &v16); sub_1000229D0(&a1->m_corners.__elems_[2], (double *)&v16); sub_1000229F0(v9, &v18, &v15); sub_1000229DC(&v15, &v17, &v16); sub_1000229D0(&a1->m_corners.__elems_[3], (double *)&v16); OBB2D::computeAxes(a1); OBB2D::orderCorners(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source