CMCharacter Modules 0.1.0

Wall Bump

Kind: Modifier · Add Component: Character Modules > Modifiers > Wall Bump

Knocks the character back off a wall hit hard in the air. It sets up the wall kick.

Hitting a wall fast in the air knocks the character back off it, instead of stopping it dead. It sets up the wall kick.

Inspector
▼Wall Bump⋮
CharacterCharacter (Character Motor)
Minimum Speed5.4
Head On Angle45
Knockback2.7
Hard Speed12.8
Hard Knockback5.4
The Wall Bump component in the Inspector, with its defaults.
Origin. Super Mario 64 (1996).

How it works

Changes the Falling mode: bounce back off walls hit head-on.

Wall Bump: running into a wall in the air, facing it and fast, bonks the character off it, as in classic 3D platformers, instead of sliding along. The wall counts if it faces the body within Head On Angle; slower hits just stop.

  • A soft bonk (below Hard Speed): it turns to look into the wall and drifts back from it at Knockback, with no control, ground pound or ledge grab until it lands.
  • A hard bonk (from Hard Speed, reached by long jumps): the same, held at Hard Knockback. Each bonk is remembered for a moment, so Wall Kick can kick off it. Numbers from the classic 3D platformer study (D33).

Combine it

  • Used by the presets: Retro Platformer.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Minimum SpeedSlowest forward speed into the wall that bonks, m/s. Slower hits just stop.0 or more5.4
Head On AngleThe wall counts within this many degrees of facing it head on.0 to 9045
KnockbackSpeed a soft bonk drifts the character back from the wall, m/s.0 or more2.7
Hard SpeedForward speed from which a bonk is hard, m/s.0 or more12.8
Hard KnockbackSpeed a hard bonk holds the character back from the wall, m/s.0 or more5.4

Additional resources