Table of Contents

Class InitialRotationSeed

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

The InitialRotationSeed is an initializer which sets the particle's rotation around the Z axis in clip space (camera-facing)

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

Constructors

InitialRotationSeed()

Default constructor which also registers the fields required by this updater

public InitialRotationSeed()

Properties

AngularRotation

Angular rotation in degrees, positive value means clockwise

[DataMember(30)]
[Display("Angle (degrees) min", null)]
public Vector2 AngularRotation { get; set; }

Property Value

Vector2

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

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)