Skip to content

Instantly share code, notes, and snippets.

@Deozaan
Created July 13, 2016 06:46
Show Gist options
  • Save Deozaan/3eab8c12823d2d523eca278eeecd6281 to your computer and use it in GitHub Desktop.
Save Deozaan/3eab8c12823d2d523eca278eeecd6281 to your computer and use it in GitHub Desktop.
BoringLerpDemoRedux
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