I want to get a rigidbody then apply a force to it that keeps at a constanst velocity ignoring gravity.
I have unchecked gravity on the rigidbody and placed it inside a box. Now I want to keep it going at a constant velocity so it bounces off the walls forever.
Any idea how? I thought maybe rigidbody.AddRelativeForce(transform.forward * 1.0, ForceMode.VelocityChange); but it doesn’t seem to work.
Basically I want to try and make one of those classic brick and paddle games. Except I want the paddle to be spherical. I am trying to figure how to make the ball work.
I figured how to do it using addforce. The reason it wasn’t working was because I was trying to add the force in Awake (just once to get it started). When I moved it to FixedUpdate it worked fine. I also added the bounce material to the floor.