// // GJBaseGameLayer::convertToClosestDirection from 0x9a69bc to 0x9a6a18 (92 bytes) // // 10 xrefs: // > PlayLayer::updateScreenRotation @ 0x6f3da4 // > PlayerObject::redirectPlayerForce @ 0x7538e0 // > PlayerObject::redirectDash @ 0x755710 // > getRotateCommandAngleDelta @ 0x9a6b9c // > GJBaseGameLayer::updateScreenRotation @ 0x9e3764 // > GJBaseGameLayer::updateScreenRotation @ 0x9e3774 // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eab6c // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eae5c // > GJBaseGameLayer::processAdvancedFollowAction @ 0x9eb318 // > @ 0x78070 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:58:10 +0000 // float __fastcall GJBaseGameLayer::convertToClosestDirection(GJBaseGameLayer *this, float result, float a3) { if ( (float)-a3 > result ) return result + (float)(ceilf(floorf(fabsf(result) / a3) * 0.5) * (float)(a3 + a3)); if ( a3 < result ) return result - (float)(ceilf(floorf(fabsf(result) / a3) * 0.5) * (float)(a3 + a3)); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source