Skip to content

Instantly share code, notes, and snippets.

@nopitech
Last active July 9, 2018 11:58
Show Gist options
  • Save nopitech/67ba844070c84f85cd761943ab2b8ed4 to your computer and use it in GitHub Desktop.
Save nopitech/67ba844070c84f85cd761943ab2b8ed4 to your computer and use it in GitHub Desktop.
using UnityEngine;
public class VectorScript : MonoBehaviour
{
void Update()
{
Vector3 from = Vector3.zero;
Vector3 to = Vector3.one*10;
transform.position = Vector3.Slerp(from, to, Time.time * 0.3f);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment