Health Pickup

HealthPickup heals or hurts whatever touches it. Use it for health packs, poison, spikes, lava, or enemies that hurt on touch.

Add Component: Glowing Rifts > Modular Health > Health Pickup

🧱 Setup

  1. Add HealthPickup to a GameObject with a solid (non-trigger) collider.
  2. Set Amount: positive heals, negative hurts.
  3. Set Collectors to the layers that can pick it up, such as your player’s layer.
  4. Make sure the pickup or the player has a non-kinematic Rigidbody, so Unity reports the collision.

Note

If your player’s Rigidbody is kinematic, give the pickup its own Rigidbody. Turn off Use Gravity and freeze its position and rotation so it stays put.

📐 Settings

FieldWhat it does
AmountHow much health it gives. Negative takes health away
CollectorsLayers that can pick it up
Destroy On CollectRemoves the pickup once it’s used. Turn it off for hazards that hurt on every touch
On CollectedFires when it’s picked up, with the object that picked it up

💡 Good to Know

  • The object that touches it needs a Health on itself or a parent.
  • Damage from a pickup is blocked by Invincibility. Healing isn’t.
  • With Destroy On Collect on, the pickup also disappears when it hits something without a Rigidbody, like the floor.

Tip

Step by step: Create Health and Damage Pickups. For ammo or power-ups, make your own pickup.