Skip to content

Commit

Permalink
Fix interpolation.
Browse files Browse the repository at this point in the history
Signed-off-by: 秋雨落 <[email protected]>
  • Loading branch information
qyl27 committed Nov 28, 2024
1 parent 6fc63a9 commit e83d049
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void updateAnimate(@NotNull MartingCarEntity entity, float partialTicks)
front_wheels.xRot = Mth.rotLerp(partialTicks, prevWheelsRad, wheelRad);
rear_wheels.xRot = Mth.rotLerp(partialTicks, prevWheelsRad, wheelRad);

prevSteeringRad = steeringRad;
prevWheelsRad = wheelRad;
prevSteeringRad = steering_inner.yRot;
prevWheelsRad = rear_wheels.xRot;
}
}

0 comments on commit e83d049

Please sign in to comment.