Table of Contents

Class InitialVelocitySeed

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

Initializer which sets the initial velocity for particles based on RandomSeed information

[DataContract("InitialVelocitySeed")]
[Display("Velocity", null)]
public class InitialVelocitySeed : ParticleInitializer
Inheritance
InitialVelocitySeed
Inherited Members

Constructors

InitialVelocitySeed()

public InitialVelocitySeed()

Properties

DebugDraw

Should this Particle Module's bounds be displayed as a debug draw

[DataMember(-1)]
public bool DebugDraw { get; set; }

Property Value

bool

SeedOffset

The seed offset used to match or separate random values

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

Property Value

uint

VelocityMax

Upper velocity value

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

Property Value

Vector3

VelocityMin

Lower velocity value

[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)

TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3)

Attepmts to get a debug shape (shape type and location matrix) for the current module in order to display its boundaries better

public override bool TryGetDebugDrawShape(out DebugDrawShape debugDrawShape, out Vector3 translation, out Quaternion rotation, out Vector3 scale)

Parameters

debugDrawShape DebugDrawShape

Type of the debug draw shape

translation Vector3

Translation of the shape

rotation Quaternion

Rotation of the shape

scale Vector3

Scaling of the shape

Returns

bool