I have a ball and I want to move it on the X axis, so, in the FixedUpdate method I added a force:
`rigidbody2D.AddForce(Vector2.right * speed);`
The ball's speed increases because of this code I wrote. I want to make this force to be constant, so the ball's speed not to increase. How can I do that? Thanks a lot!
↧