+1 vote

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:
| = wallleft
|| = 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.

in Engine by (56 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.