class

CollisionModule

Collision module - bounces particles off the scene

Module
Particles
Header
#include "Particles/ParticleModule.h"
Namespace
Mowo

Properties

TypeNameDescription
ParticleCollisionModemodeDefault ParticleCollisionMode::Auto.
floatradiusCollision radius in world units — the particle is treated as a sphere, so a smoke puff can settle on a floor instead of sinking half its billboard into it. Default 0.05f.
floatbounceFraction of the normal velocity kept on bounce (0 = dead stop, 1 = perfectly elastic). Default 0.4f.
floatfrictionFraction of the tangential velocity removed on bounce, so debris slides to a stop rather than skating forever. Default 0.2f.
floatlifetimeLossAge added on impact as a fraction of the particle's total lifetime, so sparks can die out where they land without a separate event system. Default 0.0f.
boolkillOnCollideKill on first contact — impact puffs and splashes want this rather than a bounce. Default false.
floatrestThresholdBelow this normal speed a resting particle stops being pushed around by the response, which is what keeps settled debris from jittering. Default 0.15f.
std::vector<FParticleEvent>*contactSinkSet by ParticleSystem while a Collision sub-emitter listens: every resolved contact is appended here. Null costs nothing. Default nullptr.

Public functions

ReturnsNameDescription
voidOnUpdateRange
voidOnPostIntegrate
const char*GetTypeName
Scope<ParticleModule>Clone
uint32_tGetLastCollisionCountContacts resolved by the last OnPostIntegrate, for the tests and the stat overlay.

Function details

OnUpdateRange

C++
void OnUpdateRange(Particle* particles, size_t count, float deltaTime, const float* normalizedAges) override

OnPostIntegrate

C++
void OnPostIntegrate(Particle* particles, size_t count, float deltaTime) override

GetTypeName

C++
const char* GetTypeName() const override

Clone

C++
Scope<ParticleModule> Clone() const override

GetLastCollisionCount

C++
uint32_t GetLastCollisionCount() const

Contacts resolved by the last OnPostIntegrate, for the tests and the stat overlay.

Generated from Particles/ParticleModule.h via particles.json · Oct 31, 2026Version 1.0.0