Hitbox
Hitbox lets a collider take damage. It multiplies the damage and passes it to the Health on its object or a parent.
Add Component: Glowing Rifts > Modular Health > Hitbox
🧱 Setup
- Add
Hitboxto a GameObject with a Collider. - Make sure a
Healthsits on the same GameObject or a parent. - Set the Damage Multiplier for that part.
Give a character several hitboxes (head, body, legs) with different multipliers. They all share the same Health.
📐 Settings
| Field | What it does |
|---|---|
| Damage Multiplier | Scales the damage. 2 doubles it (a headshot), 0.5 halves it (armor) |
| On Hit | Fires every time this hitbox is hit. Use it for hit sounds or effects on this part |
💡 Good to Know
- Disable a hitbox to make that part ignore hits.
- On Hit still fires when Invincibility blocks the damage.
- You don’t need a hitbox on an object with a single collider next to
Health. It adds one itself.
Tip
Step by step: Add Hitboxes and Weak Spots. The Hitbox Boss example uses multipliers of 2, 1 and 0.5.