0 votes

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

in Engine by (64 points)

2 Answers

0 votes

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.

by (840 points)
0 votes

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

by (20 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.