CMCharacter Modules 0.1.0

Rigidbody Pushing

Kind: Modifier · Add Component: Character Modules > World > Rigidbody Pushing

Pushes crates and other physics objects. Crates become steps and switch weights.

Lets the character push physics objects such as crates, with a force a person could manage. Crates become steps and switches.

Inspector
▼Rigidbody Pushing⋮
CharacterCharacter (Character Motor)
Strength1500
Horizontal OnlyOn ▾
The Rigidbody Pushing component in the Inspector, with its defaults.
Origin. Half-Life 2 (2004) built puzzles from pushing physics objects.

How it works

Changes no state: it only reports or reacts.

Pushes dynamic Rigidbodies the character walks into. It pushes with enough force to bring the object up to the character's speed, but never more than strength, so light crates slide along and heavy ones (whose friction is more than that) do not move. The character itself is kinematic, so without this it stops at a crate as if it were a wall.

Combine it

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

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
StrengthMost force the character pushes with, newtons. About 1500 for a person leaning into it.0 or more1500
Horizontal OnlyPush horizontally only, so the character does not press crates into the floor.On

Additional resources