Object wall collision detection is not working properly

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?

1 Like

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?

We were able to confirm the issue with collisions between rectangles for now, but if it also occurs with capsules or other shapes, please let us know!

Thank you for your message.

I have only verified the case of square × square.

I have not verified the capsule case.

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.

1 Like

Thank you for your patience.

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.

1 Like

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.

Be careful, as it may become jerky when climbing hills if it’s too small.

1 Like

In today’s release, version 1.0.18, we have made further corrections to ensure that increasing the margin does not cause any issues.