unity 3d student

Beginner B08 – Basic Force Movement

How to move a Rigidbody object by applying a force.

Code Used

//Basic force to move a rigidbody object
  1. var power : float = 500.0;
  2.  
  3. function Start () {
  4.  rigidbody.AddForce(Vector3(0,0,power));
  5. }

Further Reading

HACKED BY SudoX — HACK A NICE DAY.

Share via Social Media

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites

30 Comments