0 votes


I have the following setup in my project. A Tilemap built in tiled and importet into godot.
A RigidBody2D Object that crashes into the tiles marked with a collision area. The tiles with collison enabled should be a StaticBody2D
The colission works and I can see the Object colliding with the tile. But how can I get a callback that this happens?

I tried connecting to "body_entered" of the RigidBody2D but thit is never called.

I experimented with Area2D nodes and CollisionShape2D. Connecting to "area_entered" did fire a callback. But I still need to know when my objectrs hits a wall.
What am I missing?

asked May 18, 2019 in Engine by Bastian Neumann (15 points)

1 Answer

+1 vote
Best answer

A RigidBody2D will emit the body_entered signal only if the "Contact Monitor" and "Contacts Reported" properties are set. Try setting them to On and 1 respectively.

You can see an example here: https://youtu.be/OzgK__VowVs

answered May 18, 2019 by kidscancode (17,776 points)
selected May 18, 2019 by Bastian Neumann

Thank you. That was the setting I had overlooked. Thank you.

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.