// // PlayerObject::rotateGameplayObject from 0x63393c to 0x633b98 (604 bytes) // // 4 xrefs: // > PlayerObject::rotatePreSlopeObjects @ 0x633bc0 // > PlayerObject::spiderTestJumpInternal @ 0x634a3c // > PlayerObject::handleRotatedCollisionInternal @ 0x638620 // > @ 0x59fa0 // // 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 PlayerObject::rotateGameplayObject(PlayerObject *a1, GameObject *a2) { std::unordered_map *p_m_rotateObjectsRelated; // x22 const cocos2d::CCPoint *v5; // x0 float v6; // s1 float v7; // s0 float v8; // s8 float v9; // s9 const cocos2d::CCPoint *LastPosition; // x25 void (__fastcall *setRRotation)(GameObject *__hidden, float); // x1 float v12; // s1 __int64 v13; // x0 int m_uniqueID; // w1 void *v15; // x23 std::_Hashtable, std::allocator>, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits>::size_type M_bucket_count; // x19 unsigned __int64 v17; // x21 unsigned __int64 v18; // x19 _QWORD *v19; // x0 cocos2d::CCPoint v20; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCPoint v21; // [xsp+88h] [xbp+88h] BYREF cocos2d::CCPoint v22; // [xsp+90h] [xbp+90h] BYREF cocos2d::CCPoint v23; // [xsp+98h] [xbp+98h] BYREF cocos2d::CCPoint v24; // [xsp+A0h] [xbp+A0h] BYREF p_m_rotateObjectsRelated = &a1->m_rotateObjectsRelated; if ( !sub_62116C(&a1->m_rotateObjectsRelated._M_h._M_buckets, a2->m_uniqueID) ) { ((void (__fastcall *)(cocos2d::CCPoint *__return_ptr, GameObject *))a2->getRealPosition)(&v20, a2); cocos2d::CCPoint::CCPoint(&v21, &v20); v5 = a1->getPosition(a1); cocos2d::CCPoint::CCPoint(&v22, v5); v6 = v22.x + (float)-(float)((float)(v20.y - v22.y) - (float)((float)(v20.x - v22.x) * -0.000000043711)); v7 = v22.y + (float)((float)(v20.x - v22.x) + (float)((float)(v20.y - v22.y) * -0.000000043711)); v8 = v6 - v21.x; v9 = v7 - v21.y; v20.x = v6; v20.y = v7; GameObject::addToTempOffset(a2, (float)(v6 - v21.x), (float)(v7 - v21.y)); LastPosition = GameObject::getLastPosition(a2); cocos2d::CCPoint::CCPoint(&v23, v8, v9); cocos2d::CCPoint::operator+(&v24, LastPosition, &v23); GameObject::setLastPosition(a2, &v24); setRRotation = a2->setRRotation; v12 = a2->m_startRotationY - 90.0; a2->m_startRotationX = a2->m_startRotationX - 90.0; a2->m_startRotationY = v12; setRRotation(a2, 0.0); a2->setObjectRectDirty(a2, 1); if ( a2->getType(a2) == Slope ) GameObject::determineSlopeDirection(a2); v13 = operator new(0x20u); m_uniqueID = a2->m_uniqueID; v15 = (void *)v13; M_bucket_count = a1->m_rotateObjectsRelated._M_h._M_bucket_count; *(_QWORD *)v13 = 0; v17 = m_uniqueID; *(_DWORD *)(v13 + 8) = m_uniqueID; *(double *)(v13 + 16) = v8; *(double *)(v13 + 24) = v9; v18 = m_uniqueID % M_bucket_count; v19 = sub_6211E0(p_m_rotateObjectsRelated, v18, (int *)(v13 + 8)); if ( v19 && *v19 ) operator delete(v15); else std::_Hashtable,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::_M_insert_unique_node( (char **)p_m_rotateObjectsRelated, v18, v17, (char *)v15); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source