RigidBody2D and Godot 3.1.1, bounce change not applied at first collision

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

Hello to everyone,

I’m using Godot 3.1.1, I’m reading everywhere that the way to add a different bounce to a RigidBody2D ball, based on the collided object, is to use the body_entered() signal of the ball.

Unfortunately in the code whatever command (old or new way) I apply, the bounce modification can be seen in action only starting on the SECOND (successive) collision with the same object. I tried:

ball.physics_material_override.bounce = 12

and also the old way:

ball.set_bounce(12)

Hoping to learn suggestions from you, I have read about some physics bugs in 3.1.1 version, maybe I’m struggling with one of them? I thank you for your help in advance!