Skip to content

Instantly share code, notes, and snippets.

@valentincognito
Created September 14, 2017 10:43
Show Gist options
  • Save valentincognito/c1a9a1594a13f3b0196765577935b83c to your computer and use it in GitHub Desktop.
Save valentincognito/c1a9a1594a13f3b0196765577935b83c to your computer and use it in GitHub Desktop.
Add a smooth effect to a transform position
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