// // PlayerObject::handleRotatedCollisionInternal from 0x100406a60 to 0x100406bb6 (342 bytes) // // 7 xrefs: // > PlayerObject::postCollision @ 0x100405c72 // > PlayerObject::postCollision @ 0x100405dc6 // > PlayerObject::collidedWithObject @ 0x10040682e // > PlayerObject::collidedWithSlope @ 0x1004068c5 // > PlayerObject::handleRotatedObjectCollision @ 0x100406a41 // > PlayerObject::handleRotatedSlopeCollision @ 0x100406c08 // > PlayerObject::collidedWithObject_1 @ 0x10040cdd9 // // 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 // // local variable allocation has failed, the output may be wrong! bool __fastcall PlayerObject::handleRotatedCollisionInternal( PlayerObject *a1, float a2, GameObject *a3, cocos2d::CCRect a4, bool a5, bool a6, bool a7) { char v7; // r9 char v8; // r15 double *v10; // rax std::__hash_node_base, void *> *>::__next_pointer i; // r12 bool v12; // r15 double *v13; // rax std::__hash_node_base, void *> *>::__next_pointer j; // r14 float v16; // [rsp+8h] [rbp-58h] BYREF __m128 v17; // [rsp+10h] [rbp-50h] BYREF _BOOL8 v18; // [rsp+20h] [rbp-40h] __int64 v19; // [rsp+28h] [rbp-38h] BYREF _BOOL4 v20; // [rsp+30h] [rbp-30h] float v21; // [rsp+34h] [rbp-2Ch] v8 = v7; v20 = a6; v18 = a5; v21 = a2; v10 = (double *)((__int64 (__fastcall *)(PlayerObject *, float, double, double))a1->getPosition)( a1, a2, *(double *)&a4.origin, *(double *)&a4.size); sub_10028CC60(&v19, v10); PlayerObject::rotateGameplayObject(a1, a3); for ( i = a1->m_potentialSlopeMap.__table_.__p1_.__value_.__next_; i; i = i->__next_ ) PlayerObject::rotateGameplayObject(a1, (GameObject *)i[3].__next_); if ( v8 ) { PlayerObject::collidedWithSlopeInternal(a1, v21, a3, a7); v12 = 0; } else { sub_10028D180(&v17, (unsigned __int64 *)v18); v12 = PlayerObject::collidedWithObjectInternal(a1, v21, a3, a4, (bool)&v17); } v13 = (double *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); sub_10028CC60(&v17, v13); sub_10028CBE0( &v16, (float)(v17.f32[1] - *((float *)&v19 + 1)) + *(float *)&v19, *((float *)&v19 + 1) - (float)(v17.f32[0] - *(float *)&v19)); ((void (__fastcall *)(PlayerObject *, float *))a1->setPosition)(a1, &v16); PlayerObject::unrotateGameplayObject(a1, a3); for ( j = a1->m_potentialSlopeMap.__table_.__p1_.__value_.__next_; j; j = j->__next_ ) PlayerObject::unrotateGameplayObject(a1, (GameObject *)j[3].__next_); return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source