// // PlayerObject::updateRotation from 0x437494 to 0x437576 (226 bytes) // // 3 xrefs: // > PlayerObject::updateSlopeRotation @ 0x4375ea // > PlayerObject::updateRotation @ 0x43773c // > PlayerObject::updateMove @ 0x43e3fe // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:48:19 +0000 // float *__fastcall PlayerObject::updateRotation(float *this, float a2, float a3) { float *v3; // r4 float v6; // s17 float v7; // s16 float v8; // s15 float v9; // s16 float v10; // r2 float v11; // s16 v3 = this; if ( *((_BYTE *)this + 1996) ) return this; v6 = (*(float (__fastcall **)(float *))(*(_DWORD *)this + 184))(this) * 0.017453; v7 = v3[503] * 0.175; if ( *((_BYTE *)v3 + 1953) ) { v8 = 0.5; LABEL_18: v7 = v7 * v8; goto LABEL_9; } if ( !PlayerObject::isFlying((PlayerObject *)v3) && !*((_BYTE *)v3 + 1955) && *((_BYTE *)v3 + 2036) && !*((_BYTE *)v3 + 1944) && !*((_BYTE *)v3 + 1945) ) { v8 = 3.0; goto LABEL_18; } LABEL_9: v9 = v7 * a2; if ( a2 > v9 ) v10 = v9; else v10 = a2; v11 = Slerp2D(v6, a3 * 0.017453, v10) * 57.296; if ( !*((_BYTE *)v3 + 2320) || !PlayerObject::isFlying((PlayerObject *)v3) || !*((_BYTE *)v3 + 1944) || *((int *)v3 + 492) <= 0 ) { a3 = v11; } return (float *)(*(int (__fastcall **)(float *, _DWORD))(*(_DWORD *)v3 + 180))(v3, LODWORD(a3)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source