Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Movement, How To

Discussion in 'Scripting' started by Jaun7707, Oct 14, 2010.

  1. Jaun7707

    Jaun7707

    Joined:
    Oct 11, 2010
    Posts:
    11
    What is the best way to make a rigid body object move. I have been using - transform.Translate (0,0,0); - but when I use this it stops the falling motion or gravity of the object. What would be the best way to control movement.

    Thanks
     
  2. SarperS

    SarperS

    Joined:
    Mar 10, 2009
    Posts:
    824
    You can either use rigidbody.AddForce or rigidbody.MovePosition functions.