How to move object with rigidbody (using physics)?

I have seen youtube guides where people use rigidbody.velocity method to move object using physics, but this method is outdated. Are there any methods to move objects using physics?

AFAIK you’re supposed to use AddForce, even old docs for .velocity say to use AddForce.

Rigidbody.linearVelocity replaces the old .velocity property. It’s just a rename, effectively.

1 Like

As Spiney199 correctly states above, it was simply renamed. To potentialy save you having to ask on the forums, know that you can simply look at the scripting docs, for instance Rigidbody2D where you’ll see “linearVelocity”. Note that this was changed to match the same change in 3D physics.

Hope that helps.

1 Like