rb.AddForce problem

I am trying to get an obstacle to fly through the air (2D) with rb.AddForce, but it takes a little bit to get to full speed. How do I make it to where when the obstacle spawns, it has a constant force and doesn’t accelerate.


You could directly assign the velocity you want using rb.velocity = new Vector3(xVelocity, yVelocity, zVelocity);.

See: Unity - Scripting API: Rigidbody.velocity