Skip to content

Instantly share code, notes, and snippets.

@tracend
Created March 28, 2011 23:10
Show Gist options
  • Save tracend/891519 to your computer and use it in GitHub Desktop.
Save tracend/891519 to your computer and use it in GitHub Desktop.
Centerax is the center of the planet... by visioneleven (http://www.youtube.com/user/visioneleven)
object.rigidbody.velocity += (centerax.transform.position - object.transform.position).nor­malized * 10 * Time.deltaTime;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment