Skip to content

Commit

Permalink
zzre: Fix NaN when Amy falls long enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Helco committed Jan 23, 2024
1 parent 86e9d50 commit dcaae72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zzre.core/math/Location.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void LookIn(Vector3 dir, bool isLocalSpace = false)

public void HorizontalSlerpIn(Vector3 dir, float curvature, float time)
{
var newForward = MathEx.HorizontalSlerp(InnerForward, Vector3.Normalize(dir), curvature, time);
var newForward = MathEx.HorizontalSlerp(InnerForward, MathEx.SafeNormalize(dir), curvature, time);
LookIn(newForward);
}

Expand Down

0 comments on commit dcaae72

Please sign in to comment.