CMCharacter Modules 0.1.0

Hull Body

Kind: Presentation · Add Component: Character Modules > Hull Body

Draws the collision shape. What you see is exactly what collides.

Draws the character's collision shape, so what is seen is exactly what collides.

Inspector
▼Hull Body⋮
CharacterCharacter (Character Motor)
TopNone
MiddleNone
BottomNone
MarkerNone
Marker Height0.7
The Hull Body component in the Inspector, with its defaults.
Origin. Blockout characters in level prototypes.

How it works

Keeps the visible body the same shape as the collision hull, also while its height changes (Crouch Height). A round hull (a capsule) is drawn as a top and a bottom sphere and a cylinder between them: the spheres keep their size and only the cylinder shortens, so the ends stay round at any height. A box hull is one cube that takes the hull's height. A marker (the facing box) keeps its size and stays at a share of the height.

Combine it

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

Properties

PropertyDescriptionRangeDefault
CharacterCharacter whose collision shape the body follows.None
TopA round hull's top sphere. Empty for a box.None
MiddleThe body's middle: the cylinder of a round hull, or the cube of a box.None
BottomA round hull's bottom sphere. Empty for a box.None
MarkerOptional: something that keeps its size and moves with the height, such as the facing marker.None
Marker HeightShare of the body's height the marker sits at.0 to 10.7

Additional resources