How can I make that two colliding objects overlap?

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

It’s a 2D game. I have a car and a street and you see the street from the top but also from the side, so you can see the what’s under the street. The street has a CollisionShape2D and the car that is on the street too. But when I start the game, it automatically sets the car on the highest point of the street. How to fix this?

collision masks and layers i think
Physics introduction — Godot Engine (stable) documentation in English

rakkarage | 2020-06-22 20:06

It would work but I want them to collide because I have to test that

MaaaxiKing | 2020-06-22 21:33

It would work but I want them to collide

You cannot have two objects collide and not collide (i.e. overlap) at the same time! Use an Area2D-node, when you just want to register entering bodies without blocking their way.

njamster | 2020-06-23 12:27