ezEngine Release 26.9
Loading...
Searching...
No Matches
ezProjectileSurfaceInteraction Struct Reference

Holds the information about how a projectile interacts with a specific surface type. More...

#include <ProjectileComponent.h>

Public Attributes

ezSurfaceResourceHandle m_hSurface
 The surface type (and derived ones) for which this interaction is used.
 
ezProjectileReaction::Enum m_Reaction
 How the projectile itself will react when hitting the surface type.
 
ezString m_sInteraction
 Which interaction should be triggered. See ezSurfaceResource.
 
ezUInt8 m_uiImpulseType = 0
 Which impulse type to use.
 
float m_fImpulse = 0.0f
 The force (or rather impulse) that is applied on the object.
 
float m_fDamage = 0.0f
 How much damage to do on this type of surface. Send via ezMsgDamage.
 
float m_fInertiaRatio = 5.0f
 How much the rotation (spinning) of the owner object is affected by reflections/bounces about the surface Positive values correspond to the rotation due to object "getting stuck in the surface" Negative values correspond to the rotation due to object "sliding over the surface" Larger by magnitude values correspond to smaller rotations. If zero, than the rotation of the owner is not changed during reflection/bounces Generally, it is an analogue of mass but for rotational movement.
 

Detailed Description

Holds the information about how a projectile interacts with a specific surface type.


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