CMCharacter Modules 0.1.0

Physics Trigger Proxy

Kind: Modifier · Add Component: Character Modules > World > Physics Trigger Proxy

Lets Unity's own triggers notice the character. Existing tools work unchanged.

Lets Unity's own trigger colliders and scripts notice the character, so existing triggers and tools work with it unchanged.

Inspector
▼Physics Trigger Proxy⋮
CharacterCharacter (Character Motor)
The Physics Trigger Proxy component in the Inspector, with its defaults.
Origin. A Unity convention: OnTriggerEnter on a body that physics can see.

How it works

Changes no state: it only reports or reacts.

Makes ordinary OnTriggerEnter / OnTriggerExit scripts notice the character: a hidden kinematic Rigidbody with a trigger collider the shape of the hull, moved to the character after every step. The character itself has no Rigidbody, so without this Unity sends trigger messages to nobody. (Triggers that implement ICharacterTrigger do not need it; the Trigger Sensor calls them directly.)

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

Additional resources