Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Particles > API/Runtime/Engine/Particles/Collision
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UParticleModule
- UParticleModuleCollisionBase
- UParticleModuleCollisionGPU
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Particles/Collision/ParticleModuleCollisionGPU.h |
| Include | #include "Particles/Collision/ParticleModuleCollisionGPU.h" |
Syntax
UCLASS (EditInlineNew, HideCategories=Object, MinimalAPI, Meta=(DisplayName="Collision"))
class UParticleModuleCollisionGPU : public UParticleModuleCollisionBase
Variables
| Type | Name | Description | |
|---|---|---|---|
| TEnumAsByte< EParticleCollisionMode::Type > | CollisionMode | ||
| float | Friction | Friction applied to all particles during a collision or while moving along a surface. | |
| float | RadiusBias | Bias applied to the collision radius. | |
| float | RadiusScale | Scale applied to the size of the particle to obtain the collision radius. | |
| float | RandomDistribution | Controls bouncing particles distribution (1 = uniform distribution; 2 = squared distribution). | |
| float | RandomSpread | Controls how wide the bouncing particles are distributed (0 = disabled). | |
| FRawDistributionFloat | Resilience | Dampens the velocity of a particle in the direction normal to the collision plane. | |
| FRawDistributionFloat | ResilienceScaleOverLife | Modulates the resilience of the particle over its lifetime. | |
| TEnumAsByte< EParticleCollisionResponse::Type > | Response | How particles respond to a collision event. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UParticleModuleCollisionGPU
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initializes the default values for this property |
Overridden from UParticleModule
| Type | Name | Description | |
|---|---|---|---|
| void | CompileModule
(
FParticleEmitterBuildInfo& EmitterInfo |
Called once to compile the effects of this module on runtime simulation. | |
| bool | IsValidForLODLevel
(
UParticleLODLevel* LODLevel, |
Returns true if the module is valid for the provided LOD level. | |
| void | SetToSensibleDefaults
(
UParticleEmitter* Owner |
For Cascade. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. |