CMCharacter Modules 0.1.0

Contact Events

Kind: Modifier · Add Component: Character Modules > World > Contact Events

Tells the world what the character stands on and bumps into. Plates, buttons and crumbling floors can react.

Tells the world what the character stands on and bumps into, so pressure plates, buttons and crumbling floors can react to it.

Inspector
▼Contact Events⋮
CharacterCharacter (Character Motor)
The Contact Events component in the Inspector, with its defaults.
Origin. Pressure plates and switches are as old as The Legend of Zelda (1986).

How it works

Changes no state: it only reports or reacts.

Contact Events: tells solid colliders about the character after every step, the way the Trigger Sensor tells triggers.

  • Standing on: Step On, Stand and Step Off, from what the ground sensor stands on (ICharacterGround). The collider stays solid, so a pressure pad is just a floor with a script.
  • Bumping: the step a move runs into a collider (ICharacterBump), with the speed into it. Both honour the ICharacterCondition components there, and are also emitted as SteppedOn, SteppedOff and Bumped events.

Combine it

  • Needs: Ground Sensor. The Inspector warns while one is missing.
  • 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

Additional resources