Save Point
README.md
wallGlide
Walking slides along walls and door frames. The character controller already slides a step along the wall it meets,
but its walk feel brakes the part of the velocity that points away from the direction asked for (at braking,
30 m/s², faster than the 20 m/s² acceleration), and a wall slide is exactly such a part: brushing a wall at 45°
slowed to about 0.3 m/s and a diagonal into a doorway stopped against the jamb.
step() runs once a frame for the local player (from HangoutHud.update) and clips the walk on the controller's
input bus (inputX / inputZ) against the wall the body touches: the part aimed into the wall is dropped, the part
along it kept, so the walk asked for and the walk the wall allows agree and nothing is braked. Risers no taller than
stepHeight are left to the controller to step up.
require("stations.wallGlide").step()