summaryrefslogtreecommitdiff
path: root/src/koopatlas/player.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/player.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/koopatlas/player.cpp b/src/koopatlas/player.cpp
index 97b4d8d..a3e484a 100644
--- a/src/koopatlas/player.cpp
+++ b/src/koopatlas/player.cpp
@@ -14,7 +14,7 @@ int daWMPlayer_c::onCreate() {
hammerSuit.setup(this->modelHandler);
pos = (Vec){0.0f,0.0f,3000.0f};
- rot = (S16Vec){-0x1800,0,0};
+ rot = (S16Vec){0x1800,0,0};
scale = (Vec){1.6f,1.6f,1.6f};
current_param = 0;
@@ -44,8 +44,14 @@ int daWMPlayer_c::onExecute() {
dScKoopatlas_c::instance->pathManager.execute();
this->modelHandler->update();
- Vec modifiedPos = {pos.x, pos.y + jumpOffset, pos.z};
- this->modelHandler->setSRT(modifiedPos, this->rot, this->scale);
+
+ mMtx myMatrix;
+ myMatrix.scale(scale.x, scale.y, scale.z);
+ myMatrix.applyTranslation(pos.x, pos.y + jumpOffset, pos.z);
+ myMatrix.applyRotationX(&rot.x);
+ myMatrix.applyRotationY(&rot.y);
+ // Z is unused for now
+ modelHandler->setMatrix(myMatrix);
if (hasEffect) {
Vec effPos = {pos.x, pos.y, 3300.0f};