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

  1. Add Hitbox to a GameObject with a Collider.
  2. Make sure a Health sits on the same GameObject or a parent.
  3. 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

FieldWhat it does
Damage MultiplierScales the damage. 2 doubles it (a headshot), 0.5 halves it (armor)
On HitFires 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.