Specify direction of colliding RigidBody2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mark_90
:warning: Old Version Published before Godot 3 was released.

Problem
How to specify the direction of a colliding RigidBody2D object with for example a StaticBody2D.

Context
Let’s imagine the following 2D environment:
|_||

Or respectively:
| = wall_left
|| = wall_right

  • = wall_bottom

Now we have object * entering the room from the top.
Whenever it collides with | or ||, it should continue it’s path down. In other words, the bounce should continue at a N degree angle aimed to the bottom.

In my standard environment, this works fine for one wall but not for the other.

I’m a bit confused as to how to specify the desired direction of a RigidBody2D colliding or how to specify a bounce direction for the walls.