diff options
| author | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 03:50:20 -0300 |
|---|---|---|
| committer | Sonic Dreamcaster <alejandro.asenjo88@gmail.com> | 2025-05-17 03:50:20 -0300 |
| commit | 3852e7e88b8ff36529c830b376a391a89d430f37 (patch) | |
| tree | 3262e3dedcbdb1a5a765203b56e7c2a7adbaa065 /src | |
| parent | 1c83a7538b283f2d46a73b0391692369f1431b7c (diff) | |
| parent | 168390f3d7faadf270c629ef281d6dd36dcbbd81 (diff) | |
Merge branch 'frameinterpolation' of https://github.com/HarbourMasters/SpaghettiKart into frameinterpolation
Diffstat (limited to 'src')
| -rw-r--r-- | src/actors/falling_rock/render.inc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/actors/falling_rock/render.inc.c b/src/actors/falling_rock/render.inc.c index c46fceaf3..54f85bf06 100644 --- a/src/actors/falling_rock/render.inc.c +++ b/src/actors/falling_rock/render.inc.c @@ -17,6 +17,9 @@ void render_actor_falling_rock(Camera* camera, struct FallingRock* rock) { f32 height; UNUSED s32 pad[4]; + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("rock", TAG_ITEM_ADDR(rock)); //Not working properly just yet + if (rock->respawnTimer != 0) { return; } @@ -49,17 +52,15 @@ void render_actor_falling_rock(Camera* camera, struct FallingRock* rock) { return; } gSPDisplayList(gDisplayListHead++, d_course_choco_mountain_dl_6F88); - FrameInterpolation_RecordMatrixPop(mtx); - + FrameInterpolation_RecordMatrixPop(mtx); } } - FrameInterpolation_RecordMatrixPush(mtx); mtxf_pos_rotation_xyz(mtx, rock->pos, rock->rot); if (render_set_position(mtx, 0) == 0) { return; } gSPDisplayList(gDisplayListHead++, d_course_choco_mountain_dl_falling_rock); - FrameInterpolation_RecordMatrixPop(mtx); + FrameInterpolation_RecordCloseChild(); } |
