Table of Contents

Class InitialPositionParent

Namespace
Stride.Particles.Initializers
Assembly
Stride.Particles.dll

The InitialPositionParent is an initializer which sets the particle's initial position at the time of spawning

[DataContract("InitialPositionParent")]
[Display("Position (parent)", null)]
public class InitialPositionParent : ParticleChildInitializer
Inheritance
InitialPositionParent
Inherited Members

Constructors

InitialPositionParent()

Default constructor which also registers the fields required by this updater

public InitialPositionParent()

Properties

PositionMax

The right upper front corner of the box

[DataMember(40)]
[Display("Position max", null)]
public Vector3 PositionMax { get; set; }

Property Value

Vector3

PositionMin

The left bottom back corner of the box

[DataMember(30)]
[Display("Position min", null)]
public Vector3 PositionMin { get; set; }

Property Value

Vector3

SeedOffset

The seed offset used to match or separate random values

[DataMember(20)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }

Property Value

uint

Methods

Initialize(ParticlePool, int, int, int)

Override Initialize if your module acts as an Initializer and change its type to Initializer

public override void Initialize(ParticlePool pool, int startIdx, int endIdx, int maxCapacity)

Parameters

pool ParticlePool

Particle pool to target

startIdx int

Starting index (included from the array)

endIdx int

End index (excluded from the array)

maxCapacity int

Max pool capacity (loops after this point) so that it's possible for (endIdx < startIdx)