Table of Contents

Class ParticleSpawnTriggerCollision

Namespace
Stride.Particles.Spawners
Assembly
Stride.Particles.dll

ParticleSpawnTriggerCollision triggers when the parent particle collides with a surface

[DataContract("ParticleSpawnTriggerCollision")]
[Display("On Hit", null)]
public class ParticleSpawnTriggerCollision : ParticleSpawnTrigger<ParticleCollisionAttribute>
Inheritance
ParticleSpawnTriggerCollision
Inherited Members

Methods

HasTriggered(Particle)

For positive values, shows if the condition was met and how much is the magnitude

public override float HasTriggered(Particle parentParticle)

Parameters

parentParticle Particle

Parent particle which attributes are used for testing

Returns

float

0f if it hasn't triggered, positive value otherwise, which also indicates the magnitude of the trigger

PrepareFromPool(ParticlePool)

Prepares fields accessors before the

public override void PrepareFromPool(ParticlePool pool)

Parameters

pool ParticlePool