Although it occurs only about once every dozen attempts, when a character lands precisely at the edge of an object with collision detection—just barely avoiding falling off—the character may enter a falling animation (the motion used when not touching a wall in the downward direction), even though they are still standing on the object and have not actually fallen.
If this happens while the character is in a state where horizontal movement inputs are not accepted, it renders the character uncontrollable, forcing a reset. This is extremely problematic. Is there any way to address this issue?
I will attempt to reproduce the issue. Could you please provide the following information?
What are the collision shapes for the character and the target object? Are they rectangular, capsule-shaped, or some other form?
It may be incorrect, but based on my experience, it seems to occur more frequently when an object falls from a high position and lands on the edge of another object while moving at high speed.
I suspected that when the speed is high, the collision detection between collisions may not work properly.
After investigation, we found that the issue was caused by Godot’s “Margin” feature. Setting this margin to its minimum value (0.001) should allow collision detection with walls even when the corner lands on a corner.
Thank you for your support. I immediately set the margin and tested the object landing on the corners several times, and the previous issue did not occur. I will monitor the situation from here.