// // PlayerObject::updateRotation from 0x100402940 to 0x100402a66 (294 bytes) // // 3 xrefs: // > PlayerObject::updateMove @ 0x10040127e // > PlayerObject::updateSlopeRotation @ 0x10040c7cf // > PlayerObject::updateRotation_1 @ 0x10040cd65 // // 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! void __fastcall PlayerObject::updateRotation(PlayerObject *a1, float a2, float a3) { __m128 m_playerSpeed_low; // xmm2 __int64 v4; // xmm1_8 float v5; // [rsp-1Ch] [rbp-1Ch] if ( !a1->m_isDashing ) { v5 = a2; a2 = ((float (__fastcall *)(PlayerObject *))a1->getRotation)(a1) * 0.017453292; m_playerSpeed_low = (__m128)LODWORD(a1->m_playerSpeed); m_playerSpeed_low.f32[0] = m_playerSpeed_low.f32[0] * 0.175; if ( a1->m_isShip ) { m_playerSpeed_low.f32[0] = m_playerSpeed_low.f32[0] * 0.5; } else if ( !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isBall && a1->m_isOnGround2 && !a1->m_isOnSlope && !a1->m_wasOnSlope ) { m_playerSpeed_low.f32[0] = m_playerSpeed_low.f32[0] * 3.0; } m_playerSpeed_low.f32[0] = fminf(m_playerSpeed_low.f32[0] * v5, v5); a2 = sub_1002834E0(*(__m128 *)&a2, a3 * 0.017453292, m_playerSpeed_low) * 57.29578; if ( a1->m_isPlatformer && (a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing) && a1->m_isOnSlope ) { v4 = LODWORD(a3); if ( a1->m_reverseRelated <= 0 ) *(_QWORD *)&a3 = *(_QWORD *)&a2; *(_QWORD *)&a2 = *(_QWORD *)&a3; } ((void (__fastcall *)(PlayerObject *, double))a1->setRotation)(a1, *(double *)&a2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source