ezEngine  Release 25.03
ezProjectileReaction Struct Reference

Defines what a projectile will do when it hits a surface. More...

#include <ProjectileComponent.h>

Public Types

enum  Enum : StorageType {
  Absorb, Reflect, Bounce, Attach,
  PassThrough, Default = Absorb
}
 
using StorageType = ezInt8
 

Detailed Description

Defines what a projectile will do when it hits a surface.

Member Enumeration Documentation

◆ Enum

enum ezProjectileReaction::Enum : StorageType
Enumerator
Absorb 

The projectile simply stops and is deleted.

Reflect 

Bounces away along the reflected direction. Maintains momentum.

Bounce 

Bounces away along the reflected direction. Loses momentum.

Attach 

Stops at the hit point, does not continue further and attaches itself as a child to the hit object.

PassThrough 

Continues flying through the geometry (but may spawn prefabs at the intersection points)


The documentation for this struct was generated from the following file: