summaryrefslogtreecommitdiff
path: root/src/engine/objects/TrashBin.cpp
diff options
context:
space:
mode:
authorMegaMech <7255464+MegaMech@users.noreply.github.com>2025-05-20 17:41:37 -0600
committerMegaMech <7255464+MegaMech@users.noreply.github.com>2025-05-20 17:41:37 -0600
commitc10361ea799c5e4ad3c00ebfe0c4d5aba2670dc1 (patch)
tree4f62f97dccc9a2cf5a8a1c0ec2d8bcd3ad1c8f78 /src/engine/objects/TrashBin.cpp
parenta364421b093fde425e4d8b11a8629b39ddb68288 (diff)
parent02d6c6fc99301ec282189285c44101a78804a063 (diff)
Merge branch 'transformfuncsforint' of https://github.com/HarbourMasters/SpaghettiKart into transformfuncsforint
Diffstat (limited to 'src/engine/objects/TrashBin.cpp')
-rw-r--r--src/engine/objects/TrashBin.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/objects/TrashBin.cpp b/src/engine/objects/TrashBin.cpp
index c94d0352f..e721f299c 100644
--- a/src/engine/objects/TrashBin.cpp
+++ b/src/engine/objects/TrashBin.cpp
@@ -3,6 +3,7 @@
#include "TrashBin.h"
#include "World.h"
#include "port/Game.h"
+#include "port/interpolation/FrameInterpolation.h"
extern "C" {
#include "main.h"
@@ -62,11 +63,18 @@ void OTrashBin::Draw(s32 cameraId) {
Mat4 mtx;
Vec3f Pos = { _pos.x + 63, _pos.y + 12, _pos.z + 25 };
Vec3s Rot = { 0, 0x4000, 0 };
+
+ // @port: Tag the transform.
+ FrameInterpolation_RecordOpenChild("Bin", mtx);
+
mtxf_pos_rotation_xyz(mtx, Pos, Rot);
//mtxf_scale(mtx, 1.0f);
if (render_set_position(mtx, 0) != 0) {
gSPDisplayList(gDisplayListHead++, BinMod);
}
+
+ // @port Pop the transform id.
+ FrameInterpolation_RecordCloseChild();
}
}
}