mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-22 15:01:17 +00:00
Fix matrices documentation (#952)
* Update names and doc of `Matrix_RotateRPY` and `SkinMatrix_SetRotateRPY` to ZYX Tait-Bryan angles * Update name and doc of `Matrix_JointPosition` to `Matrix_TranslateRotateZYX` * `Euler ***` -> `Tait-Bryan *** angles` * Update docs of `SkinMatrix_Vec3fMtxFMultXYZW` and `SkinMatrix_Vec3fMtxFMultXYZ` * Fix doc of `SkinMatrix_MtxFMtxFMult` * Update docs of `SkinMatrix_Invert` * Change name and docs of `SkinMatrix_SetRotateYRP` to `SkinMatrix_SetRotateYXZ` * Change name and docs of `SkinMatrix_SetScaleRotateRPYTranslate` to `SkinMatrix_SetScaleRotateZYXTranslate` * Change name and docs of `SkinMatrix_SetScaleRotateYRPTranslate` to `SkinMatrix_SetScaleRotateYXZTranslate` * Change name and docs of `SkinMatrix_SetRotateRPYTranslate` to `SkinMatrix_SetRotateZYXTranslate` * Add renamed functions to `namefixer.py` * Run formatter * Consistent function names (`ABC()` if equivalent to `A() B() C()`)
This commit is contained in:
parent
9ca6bfdac3
commit
03636166b3
53 changed files with 373 additions and 357 deletions
|
@ -264,11 +264,11 @@ void EnDha_Wait(EnDha* this, GlobalContext* globalCtx) {
|
|||
|
||||
func_80035844(&this->armPos, &this->handPos[0], &angle, 0);
|
||||
Matrix_Translate(this->handPos[0].x, this->handPos[0].y, this->handPos[0].z, MTXMODE_NEW);
|
||||
Matrix_RotateRPY(angle.x, angle.y, 0, MTXMODE_APPLY);
|
||||
Matrix_RotateZYX(angle.x, angle.y, 0, MTXMODE_APPLY);
|
||||
Matrix_MultVec3f(&armPosMultiplier2, &this->armPos);
|
||||
Matrix_Translate(this->actor.world.pos.x, this->actor.world.pos.y, this->actor.world.pos.z, MTXMODE_NEW);
|
||||
func_80035844(&this->actor.world.pos, &this->armPos, &angle, 0);
|
||||
Matrix_RotateRPY(angle.x, angle.y, 0, MTXMODE_APPLY);
|
||||
Matrix_RotateZYX(angle.x, angle.y, 0, MTXMODE_APPLY);
|
||||
Matrix_MultVec3f(&armPosMultiplier1, &this->armPos);
|
||||
this->limbAngleX[0] = Math_Vec3f_Pitch(&this->actor.world.pos, &this->armPos);
|
||||
yaw = Math_Vec3f_Yaw(&this->actor.world.pos, &this->armPos) - this->actor.shape.rot.y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue