Skip to content

Commit d460cb4

Browse files
committed
Better wrinkle fix
1 parent 05e8022 commit d460cb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/_Project/Scripts/Movement/MovePositionWanderComplex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void RotateTowardsTarget2D ()
8585
// If new rotation would flip player in y rotation, prevent this
8686
if (safetyX <= 0.1f && safetyY == 0)
8787
{
88-
temp = new Vector3(-0.9f, 0.1f, 0);
88+
temp = new Vector3(temp.x, 0.1f, 0);
8989
}
9090

9191
// Set right vector

0 commit comments

Comments
 (0)