Unit Not Rotating When moving directly backwards

Hey! My unit does not rotate if I tell it to move backwards (I’m at the Ragdoll step and just noticed so I went back to the rotation video to comment).

Is this happening to anyone else?

This is a side effect of the Vector3.Lerp. If the angle is 180 degrees, from the forward to the desired destination, it doesn’t return the correct result.
Try changing Lerp (Linear Interpolation) to Slrp (Spherical Linear Interpolation). Fortunately, the parameters are the same.

2 Likes

Privacy & Terms