CMCharacter Modules 0.1.0

Box Hull

Kind: Hull · Add Component: Character Modules > Collision > Box Hull

Gives the character a box shape that never turns. Edges and doorways behave exactly, which competitive players rely on.

The character's shape as a box that never turns. Corners stay corners: the character fits exactly through doorways of its width and stands on ledges up to its very edge, which competitive play relies on.

Inspector
▼Box Hull⋮
CharacterCharacter (Character Motor)
Collision MaskDefault, TransparentFX, 3, Water, UI, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31 ▾
Skin0.01
Size(0.8, 1.8, 0.8)
The Box Hull component in the Inspector, with its defaults.
Origin. Quake (1996) and Half-Life (1998): the player is an axis-aligned bounding box. Counter-Strike inherited it.

How it works

Axis-aligned box, the shape of players in classic arena shooters and older PC shooters.

Good: the flat bottom stands fully on ledges and stair edges, step height is exact, and the shape lines up with brush grids. Changing stance is just changing the height. Watch out: the box never turns with the view, so it snags on the corners of rotated geometry, and it is about 1.41 times wider along the diagonal than along an axis. Doorways must allow for the diagonal.

Combine it

  • Used by the presets: Arena Shooter, Competitive Shooter, Surf.

Properties

PropertyDescriptionRangeDefault
CharacterThe character this module belongs to. Drag its Character Motor here.None
Collision MaskLayers the character collides with.Default, TransparentFX, 3, Water, UI, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
SkinGap kept between the hull and the world so that sweeps never start inside a collider, metres.0.001 or more0.01
SizeWidth (x), height (y) and depth (z) of the box, metres. The feet are at the bottom centre.(0.8, 1.8, 0.8)

Additional resources