(2D) How to have absolutely no bounce when colliding two objects?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Telmo “Trooper”

I have a node called “SlidingBlock” which is a RigidBody2D, its mode is Character so I can move it with the physics engine but not rotate it. It also has a CollisionShape2D.

I’ve programmed a kicking action on which I set a value for its linear velocity, like this:
block_touched.linear_velocity.x = BLOCK_SPEED

The block moves until it collides with another RigidBody2D which is in mode Static and, when it collides, it goes one pixel forward and then back. It looks weird in my game which is a somewhat low resolution pixel art game.

I tried creating a Physics Material with Bounce set to 0 with no success. How can I achieve a collision with absolutely no bounce effect?

Thank you.