Created
July 13, 2016 06:46
-
-
Save Deozaan/3eab8c12823d2d523eca278eeecd6281 to your computer and use it in GitHub Desktop.
BoringLerpDemoRedux
This file contains 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
using UnityEngine; | |
public class BoringLerpDemo : MonoBehaviour { | |
public Vector3 endPosition; | |
void Update() { | |
transform.position = Vector3.Lerp(transform.position, endPosition, Time.deltaTime); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment