Skip to content

Sometimes fails to climb steps at slow speeds #15

@Skaruts

Description

@Skaruts

When going at lower speeds the stepping code sometimes fails to climb steps. I tried to play around with the code, but I can't think of a way to fix this.

I first noticed this issue when I lowered the speed of my controller and added a key to walk even slower (for stealth). When walking slowly up the stairs, sometimes it failed to climb some steps. But there are other ways to replicate the issue without changing the controller's speed. I recorded a couple gifs to illustrate them (ignore all the z-fighting of the collision shapes).

Here I'm strafing left into the wall (not pressing forward). This reduces the speed, and I end up bumping into the step instead of climbing it (I made some gizmos for the velocity vector and the collision normal).

Image

The same problem happens when approaching stairs from subtle angles, like below (you can see how the velocity vector changes):
Image


This may or may not be related to it being unable to climb 1-unit steps (in my case 1 unit == 1/48 -- I'm using 48 as my "inverse scale factor" in the map importer plugin). May be worth keeping in mind, just in case.

In the gif, it climbs up to the second step and gets stuck. For some odd reason, it climbs a few more steps when I release the forward key.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions