Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Celimp |
CollisionShape2D is spinning after collision and slows down.
All objects have rectangle collision shape.
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Celimp |
CollisionShape2D is spinning after collision and slows down.
All objects have rectangle collision shape.
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.
Reply From: | confused |
Right after the collision, zero the rotation rate of the object.