Created
September 14, 2017 10:43
-
-
Save valentincognito/c1a9a1594a13f3b0196765577935b83c to your computer and use it in GitHub Desktop.
Add a smooth effect to a transform position
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transform.position = Vector3.Lerp(startPos, endPos, Time.deltaTime * speed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment