appsinacup / godot-rapier-physics

Godot Rapier Physics – 2D and 3D physics engine for the Godot game engine. with better stability, performance, liquids, determinism, state serialization and no ghost collisions.
https://godot.rapier.rs
MIT License
421 stars 22 forks source link

signal body_entered works only with Debug> Visible Collision Shapes #298

Closed shokme closed 2 weeks ago

shokme commented 2 weeks ago

Describe the bug

This issue only occurs when using Rapier. If Debug > Visible Collision Shapes is not active, Rigidbody2D cannot detect body_entered().

To Reproduce

Steps to reproduce the behavior:

Run the project with Debug > Visible Collision Shapes enabled.\ You will see "hit" in the console.

Then, disable Visible Collision Shapes.\ You will no longer see "hit" in the console.

Switch to the default engine and repeat these steps. It will work in both cases.

Expected behavior

It should function the same as when using the default engine.

Environment:

Example project(zip) collisiondetectionbug.zip