mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-07-08 14:37:09 -04:00
Slightly better falling rocks(still needs work)
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user