Open NovaDawn999 opened 5 months ago
It is interesting that the linked issue mentions there is no issue with a sphere shape. Can you test with a capsule shape such that its height is twice the radius (so it effectively becomes a sphere)? If there is a difference in behavior then we should be able to track it down.
(I would test it myself but I'm on mobile right now.)
The behavior does indeed change when the capsule's height is twice the radius. It will freely pass the edge fixing condition 2.
Condition 3 doesn't happen either, however a slightly different snapping does occur: There's a snapping effect that takes place when passing the top edge. If the center of the capsule is left of the leftmost edge, when traveling over the ramp, the capsule will snap to the right, causing the center to align with the leftmost edge of the ramp. This also happens on the right side. Not sure if this behavior is related or intended.
Tested versions
System information
Linux, Windows 11 Vulkan(Forward+)
Issue description
When moving a CharacterBody3D with a CapsuleShape3D with move_and_slide(), it gets stuck on the edges/top of ramps. This is likely a repeat of #79542 and the project file provided is the same.
Steps to reproduce
Move CharacterBody3D with a CapsuleShape3D up a ramp. Will either:
Minimal reproduction project (MRP)
capsule_collision.zip