How to give Rigidbody2D bodies elasticity?

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

I want to transfer my old “game” (if I may say so?), written in Python (Pymunk + Pygame), to the Godot engine of the 4th version with additional improvements.

But I ran into a problem: Rigidbody2D does not have such a property as elasticity
I do not know how to implement it myself, since I have not done anything like this before, I could not find anything on the Internet about this.

However, I know for sure that Rigidbody2D definitely has a parameter responsible for bouncing off walls and surfaces.

To better understand what I want to achieve - watch this

:bust_in_silhouette: Reply From: kidscancode

That is the Bounce parameter. Add a PhysicsMaterial and you’ll see the property.

https://docs.godotengine.org/en/latest/tutorials/physics/physics_introduction.html#physics-material