I have a script that allows me to aim and it does a smooth transition between to Vector3’s but sometimes the transitions slows down a lot. How do I make it so that it doesn’t move so slow sometimes?
If you don’t want your movement to be eased you can change from using Vector3.Lerp() to using Vector3.MoveTowards(). The value of ‘Smoothing’ will also have to change. Or as an alternate, you can change the last parameter of the Lerp() to using a timer and set the values so that they increase from 0.0 to 1.0. Your use of Lerp() here is a non-traditional use (though common in Unity code posted to this list). It really just takes a fractional bite out of the distance each frame. As the distance falls, the fraction is a smaller distance and therefore produces an eased movement.