// // PlayerObject::updateRotation_1 from 0x140391020 to 0x140391251 (561 bytes) // // 6 xrefs: // > GJBaseGameLayer::update @ 0x14023866d // > GJBaseGameLayer::update @ 0x140238686 // > MenuGameLayer::update @ 0x140332522 // > @ 0x14069787c // > @ 0x1406978b0 // > @ 0x1406d6170 // // 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::updateRotation_1(PlayerObject *a1, float a2) { float v4; // xmm0_4 double m_yVelocity; // xmm1_8 bool v6; // cf bool v7; // zf float v8; // xmm0_4 PlayerObject_vtbl *v9; // rbx if ( !a1->m_isLocked && !a1->m_isDashing ) { if ( !a1->m_isBall ) { if ( a1->m_isOnSlope ) { v4 = PlayerObject::convertToClosestRotation(a1, a1->m_slopeRotation * 57.29578018188477); if ( a1->m_isPlatformer && a1->m_maybeChangedDirectionAngle > 80.0 && (a1->m_platformerMovingLeft || a1->m_platformerMovingRight) ) { v4 = 0.0; } PlayerObject::updateRotation(a1, a2, v4); } else if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing ) { PlayerObject::updateShipRotation(a1, a2); } else if ( a1->m_isBird || a1->m_isDart || a1->m_isSwing || !a1->m_isOnGround2 || ((m_yVelocity = a1->m_yVelocity, a1->m_isUpsideDown) ? (v6 = m_yVelocity < 0.25, v7 = m_yVelocity == 0.25) : (v6 = m_yVelocity > -0.25, v7 = m_yVelocity == -0.25), !v6 && !v7 || a1->m_wasOnSlope) ) { if ( (a1->m_isRobot || a1->m_isSpider) && !a1->m_wasOnSlope ) PlayerObject::updateRotation(a1, a2 * 0.5, 0.0); } else if ( !a1->m_isPlatformer || !a1->m_isRotating ) { *(_WORD *)&a1->m_isRotating = 0; a1->m_isBallRotating = 0; a1->m_rotationSpeed = 0.0; v8 = PlayerObject::convertToClosestRotation(a1, 0.0); PlayerObject::updateRotation(a1, a2, v8); } } if ( a1->m_rotationSpeed != 0.0 ) { v9 = a1->GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->getRotation(a1); ((void (__fastcall *)(PlayerObject *))v9->setRotation)(a1); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source