Skip to content

Instantly share code, notes, and snippets.

@tsmrecki
Created May 19, 2016 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsmrecki/906d39c68252b69cbe1527dffcfd2fd2 to your computer and use it in GitHub Desktop.
Save tsmrecki/906d39c68252b69cbe1527dffcfd2fd2 to your computer and use it in GitHub Desktop.
Make a object walk forward
void Update(){
GetComponent<Rigidbody> ().velocity = transform.forward * 2.0f;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment