Probleme with kinematic body

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

I have a big probleme with collision in my game. I made a door sprite with an Area2D and a CollisionShape2D. I put the Kenematics and the Area2D to the same Layer and Mask but when I play the game, it’s like there are no collisions. I pass trough the door.

Help pls

:bust_in_silhouette: Reply From: MrEliptik

An Area2D won’t stop your player. It’s made to detect things entering or exiting.

You probably want to use an StaticBody2D instead. It will be the same setup with a StaticBody2D instead of an Area2D.

Here’s the doc if you want more info: StaticBody2D — Godot Engine (stable) documentation in English

For real thanks! You just saved me 2h

GarnotDot | 2021-03-24 22:19

No problem! Don’t forget to select the answer as best answer to close your question.

MrEliptik | 2021-03-24 22:22