How to make CharacterControl walk over a stair?

I’m moving around a CharacterControl, and I have a stair which should be walkable.

However, I can’t walk on it. Jumping over is possible but it shouldn’t be necessary.

This is my code:

    player.characterControl=new CharacterControl(new CapsuleCollisionShape(1.5f, 6f, 1), 0.05f);

This is walkable:

This is NOT walkable (maybe too steep?)

Is there some property to set on CharacterControl to make it walk over it without jumping?
Thanks!

A quickie solution is making the collider for the stairs as a ramp. Later you can code some IK to ensure the feet touch the stairs.

another one is making the collider with double the steps but half the height. Ir depends on what kind of game you want to make and what tricks you want to pull :wink:

1 Like

I hoped to read something like “characterControl.setMaxStepHeight(float);”… oh well, thanks for the tip! :smile: