Skip to content

Commit

Permalink
interpolation: fix hair in high speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Apr 7, 2024
1 parent 97f8c77 commit 2510d83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/interpolation.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ void Interpolation_Commit(void)
for (int i = 0; i < Lara_Hair_GetSegmentCount(); i++) {
HAIR_SEGMENT *hair = Lara_Hair_GetSegment(i);
INTERPOLATE(hair, pos.x, ratio, 128);
INTERPOLATE(hair, pos.y, ratio, 128);
INTERPOLATE(
hair, pos.y, ratio, MAX(128, g_LaraItem->fall_speed * 2));
INTERPOLATE(hair, pos.z, ratio, 128);
INTERPOLATE_ROT(hair, rot.x, ratio, PHD_45);
INTERPOLATE_ROT(hair, rot.y, ratio, PHD_45);
Expand Down

0 comments on commit 2510d83

Please sign in to comment.