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
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
| Property | Description | Range | Default |
|---|---|---|---|
| Character | Character whose collision shape the body follows. | None | |
| Top | A round hull's top sphere. Empty for a box. | None | |
| Middle | The body's middle: the cylinder of a round hull, or the cube of a box. | None | |
| Bottom | A round hull's bottom sphere. Empty for a box. | None | |
| Marker | Optional: something that keeps its size and moves with the height, such as the facing marker. | None | |
| Marker Height | Share of the body's height the marker sits at. | 0 to 1 | 0.7 |