Table of Contents

Class InitialVelocityParent

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

The InitialVelocityParent is an initializer which sets the particle's velocity based on a followed (parent) particle's velocity

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

Constructors

InitialVelocityParent()

Default constructor which also registers the fields required by this updater

public InitialVelocityParent()

Properties

ParentVelocityFactor

The factor (percentage) for parent's velocity inheritance

[DataMember(25)]
[Display("Velocity factor", null)]
public float ParentVelocityFactor { get; set; }

Property Value

float

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

VelocityMax

The right upper front corner of the box

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

Property Value

Vector3

VelocityMin

The left bottom back corner of the box

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

Property Value

Vector3

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)