How to make a constant speed or how to stop CollisionShape2D spinning after collision?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Celimp

CollisionShape2D is spinning after collision and slows down.
All objects have rectangle collision shape.
ball slows down

:bust_in_silhouette: Reply From: Footurist

What type of PhysicsBody is this? Rigid or Kinematic? I assume it’s a rigid one.
For the breakout game, I would actually rather use a kinematic body, because they are more easy to control, not to say that a rigid body has no advantages here.

You can then calculate the angle and set the new direction of the kinematic body randomly in some range.

:bust_in_silhouette: Reply From: confused

Right after the collision, zero the rotation rate of the object.