CRM64Pro GDK v0.80.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::SceneParticleCollisionEvent

Batched Scene particle collision event payload. More...

Public Member Functions

 SceneParticleCollisionEvent ()
 Construct an empty particle collision event.

Public Attributes

Sint32 idParticle
 Runtime particle emitter ID.
Sint32 idSourceLayer
 Layer containing the source particle object.
Sint32 idSourceObject
 Source particle Scene object ID.
Sint32 idTargetLayer
 Layer containing the hit object.
Sint32 idTargetObject
 Hit Scene object ID.
const SceneObject * pSource
 Source particle Scene object.
const SceneObject * pTarget
 Hit Scene object.
Sint32 iHitCount
 Number of first particle impacts aggregated into this event.
float fX
 World X position of the first impact.
float fY
 World Y position of the first impact.
float fNormalX
 World collision-normal X component of the first impact.
float fNormalY
 World collision-normal Y component of the first impact.
float fDeltaTime
 Scene update delta time in seconds.

Detailed Description

Batched Scene particle collision event payload.

One event represents all first-lifetime particle impacts from one emitter against one target object during a Scene update. The object pointers are borrowed and valid only for the callback duration.