Projectile Barrel

The ProjectileBarrel is a base barrel extension that launches physical projectiles instead of using raycasts. This allows for slower, arcing, or visually persistent munitions—ideal for grenades, rockets, or fantasy spells.

Add Component: Glowing Rifts > Modular Weapon > Projectile Barrel

✅ Ideal For

  • Grenade launchers
  • RPGs
  • Magic spells
  • Plasma or energy projectiles

⚙️ How it works

Each time the barrel fires:

  1. One projectile prefab is spawned per bullet, each at its own spawn point, carrying a damage value rolled from the barrel’s Config.
  2. The projectile handles its own movement and collision.
  3. Damage and effects are triggered when the projectile hits something or after a delay.

Note

Because the projectile is a separate GameObject, it allows for more dynamic behavior like gravity, bounce, and trail effects.

📐 Additional Settings

Aside from the base barrel logic, the projectile barrel introduces new settings highlighted in the red box in the image below

FieldDescription
Projectile PrefabThe prefab that will be instantiated and launched when firing.
Projectile Events > On Projectile Spawned (Projectile)Event triggered after the projectile has been instantiated. Use this to initialize logic, add VFX, or attach metadata.