I've been having problems detecting when 2 Rigid Bodies collide in Godot (specifically a falling pill and a floor that is frozen in place). I need to delete the pill when it contacts the floor. I have already tried fixing the following things:
- Setting contact monitor to true and setting Max contacts to 100
- re-linking the Rigidbody2D body_entered signal to the code
- printing when it detects a collision (nothing was ever printed to console.)
However, for some reason, if I shift the code over to the pill, it works perfectly fine the other way around. (When the pill contacts the floor, it deletes the floor)
The code for the floor: (code is in gdscript)
The signal: signal
The floor settings: floor settings
The pill settings: pill settings
The error messages error messages