How do I change the speed of a physics object?

in the game that im working on the player is a ball, im using torque to give the ball its movement. the problem is that even when I stop controlling it the ball never stops it has a constant speed unless I press the key that goes in the opposite direction it wont stop.

How do I make the ball deaccelerate via drag?

How do I set a limit to the maximum speed of the ball? or make its acceleration slow the more it gains?

1 Like

How do I make the ball deaccelerate
via drag?

Increase angular dampening on the ball. Default is low at 0.1. Set it to 5.0 and it should not go faster than a couple of meters / s.

How do I set a limit to the maximum
speed of the ball?

As above.

or make its
acceleration slow the more it gains?

You could map range the length of the velocity vector to 0-1, do 1-value and multiply it by the input axis. The faster you go, the less you can accelerate; at certain speed this will be 0. If you also have angular dampening, this will balance itself out. Some tinkering might be required to get the values right.

Same method can be applied to angular dampening, the faster you go, the more drag there is.

1 Like

You can use Velocity and Add impulse blueprint scripts and also you can follow this link too #7 Using Blueprints to Control the Angle and Velocity of the Ball | UE4 Tutorial - YouTube

How is this helping? OP said they’re using torque… ;p Also the video does not cover what’s needed at all.

Join to our discord I can help by person Discord