Pong ball is bouncing in the wrong direction.

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

I made a pong/breakout ball for my game, but sometimes it bounces in the wrong direction when touching the floor.

The ball is a KinematicBody2D that uses move and slide

https://streamable.com/mkdg1u
The ball in this video bounces left, instead of right.

From what I could see is that it bounced of a horizontal wall the moment it bounced back. if you play the video very slowly or frame by frame you can notice it will reverse in the x direction first and then bounce back up.

What kind of collisionshape do you use for the ball?

krokoloko | 2023-02-20 11:49

Thank you, that fixed the issue.

I was originally using a square collision shape, instead of a circle.

blarfyshow | 2023-02-20 22:58