CMCharacter Modules 0.1.0

Step Slide Solver

Kind: Solver · Add Component: Character Modules > Collision > Step Slide Solver

Slides the character along walls and steps it up stairs. Movement flows through the level instead of stopping at every obstacle.

Moves the shape through the level: it slides along walls instead of stopping dead, and steps up stairs and small ledges without a jump. Without it a character sticks to every wall and needs a ramp for every step.

Inspector
▼Step Slide Solver⋮
CharacterCharacter (Character Motor)
Max Iterations6
Contact Gap0.002
Steep As WallsOn ▾
Step Height0.4
The Step Slide Solver component in the Inspector, with its defaults.
Origin. Quake's PM_StepSlideMove (1996): try the move, and if something blocks it, try again from a step higher.

How it works

Collide and slide that climbs stairs by probing the obstacle (decision D28). When a walking move stops short against something too steep to stand on, look just past it from step height: if the hull fits up there and comes down onto walkable ground no higher than the step height, rise by exactly that much and carry on with the rest of the move. Only states that ask for it (walking) step; jumping and falling never do.

Combine it

  • Used by the presets: Arena Shooter, Competitive Shooter, Surf, Retro Platformer, Modern Platformer, Traversal Adventure, Action RPG.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Max IterationsHow many times one move may hit something and carry on along it.1 to 126
Contact GapGap left between the hull and a surface it stops at, metres.0 or more0.002
Steep As WallsWhile walking, treat surfaces too steep to stand on as vertical walls, so the character never rides up them. Off: a capsule rolls up low lips and steep corners.On
Step HeightHighest ledge the character walks up without jumping, metres.0 or more0.4

Additional resources