mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 06:52:03 +00:00
Angle cleanup - BINANG_TO_RAD
, BINANG_TO_RAD_ALT
(#1158)
* Run formatter * Touch up angle macros (parentheses and hex constants) * Add `BINANG_TO_RAD_ALT` * Swap `BINANG_TO_RAD` and `BINANG_TO_RAD_ALT` * Run formatter
This commit is contained in:
parent
4f6967b027
commit
0e5ecdcd73
65 changed files with 170 additions and 170 deletions
|
@ -765,7 +765,7 @@ void EnSt_Sway(EnSt* this) {
|
|||
amtToTranslate.z = 0.0f;
|
||||
Matrix_Push();
|
||||
Matrix_Translate(this->ceilingPos.x, this->ceilingPos.y, this->ceilingPos.z, MTXMODE_NEW);
|
||||
Matrix_RotateY(this->actor.world.rot.y * (M_PI / 32768.0f), MTXMODE_APPLY);
|
||||
Matrix_RotateY(BINANG_TO_RAD(this->actor.world.rot.y), MTXMODE_APPLY);
|
||||
Matrix_MultVec3f(&amtToTranslate, &translatedPos);
|
||||
Matrix_Pop();
|
||||
this->actor.shape.rot.z = -(rotAngle * 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue