Skip to content

How can I let capsule character controllers step over small steps? #261

Answered by RossNordby
Arthur3DLHC asked this question in Q&A
Discussion options

You must be logged in to vote

The demos character doesn't have a traditional step-up feature, it's just a capsule. When the capsule slides up to an obstacle, if the contact normal between the obstacle and the capsule is shallow enough to allow traction, the character can climb up. There's no actual difference between a step and a slope as far as the character is concerned.

To "step over" larger objects, the demos character either needs a larger radius or a steeper allowed slope.

(The bepuphysics1 character had explicit stepping that would teleport up step-like obstacles. I didn't reimplement that because 1. it was complicated as heck, 2. it was expensive, and 3. teleportation breaks all kinds of dynamics (imagine the …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arthur3DLHC
Comment options

Answer selected by Arthur3DLHC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants