A question regarding Rapier engine

There is a noticeable stutter or hitch whenever the junction line between the Rapier capsule’s lower hemisphere and its cylinder makes contact with the upper edges of a cuboid, occurring during both ascent and descent. Why and how to fix it? Thx

1 Like

Yeah this is pretty normal. It comes from how capsule vs box collisions are solved. The seam where the capsule’s rounded end meets the straight cylinder is a bit awkward mathematically, so when that exact spot touches a sharp cuboid edge the collision normal can flip back and forth between frames. That shows up as a small hitch during both ascent and descent.

Normally we do not worry about this because it only happens in very specific edge contacts and has little to no gameplay impact.

If you want to reduce it anyway, rounding or beveling the box edges helps a lot. Increasing the contact offset or skin width can also smooth it out. Using a swept capsule or avoiding perfectly sharp box edges by using a small convex radius usually removes the stutter entirely. It is a known capsule edge interaction and not a bug in the controller.

2 Likes

Thank you so much.