For my second project I decided to make a pong clone (my first project was a Bricks clone so I was using a th same sprites and more or less the same script). I managed to get a playable pong clone pretty quickly but I have a problem with how the ball works. The ball is a simple square and it can collide with a poligon on the margins of the game window, the thing is the ball collides and start rotating as soon as it bounces, it also slows down. How do I get a ball that doesn't rotate or slow down after it hits the wall? Basically I want the ball to act like a Pong ball
are you using a KintematicBody2D or a RigiBidy2D?
KintematicBody2D
RigiBidy2D
for Kinematic: inside the physics_process just set the rotation to 0.
physics_process
for RigidBody: inside the integrate_forces set the rotation to 0.
integrate_forces
this should give you the expected result.