KinematicBody2D move_and_collide()
fails to report collision in the case of very small safety margin
#50287
Labels
Milestone
Godot version
3.3.2.stable
System information
Windows 10
Issue description
The
move_to_collide()
returns a null value, even though the moving object clearly interacts with the static object. This is triggered when two conditions are met:Steps to reproduce
Open the reproduction project and run the scene. The moving object attempts to move downwards but is blocked by the static object.
The expected behavior is for the moving object to report a collision on the first
_physics_process()
, but instead, it does not report collision until the second_physics_process()
, even though judging by the change of position, the object is clearly blocked from the start.Changing the safety margin to a bigger value or starting from a larger depth (e.g.
y = 256.05
instead of256.02
) makes this phenomenon disappear.Minimal reproduction project
collision_bug_example.zip
The text was updated successfully, but these errors were encountered: