- Home /
moving between two points over time
I want my character to be able to move between his current position and a set magnitude along the x-axis over a set time, upon pressing the X button. I've tried using Vector3.Lerp but no matter how I try it, it doesn't turn out right. Can someone please tell me how I would go about doing this?
The way I have it now, the character changes position instantly but I want it to be a smooth change.
Check out this Unity Gems tutorial which has a section on Lerp - the Unity docs have some strange quirks in that area...
Answer by CaioRosisca · Nov 12, 2012 at 03:10 AM
You can have a look at iTween http://itween.pixelplacement.com
Your answer
Follow this Question
Related Questions
How to smooth my camera (Vector3.Lerp) 0 Answers
How would I smooth out a Quaternion? 2 Answers
Smoothing motion with vector3 lerp 3 Answers