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
-
objectInitialVelocitySeed
- 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
SeedOffset
The seed offset used to match or separate random values
[DataMember(8)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }
Property Value
VelocityMax
Upper velocity value
[DataMember(40)]
[Display("Velocity max", null)]
public Vector3 VelocityMax { get; set; }
Property Value
VelocityMin
Lower velocity value
[DataMember(30)]
[Display("Velocity min", null)]
public Vector3 VelocityMin { get; set; }
Property Value
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
poolParticlePoolParticle pool to target
startIdxintStarting index (included from the array)
endIdxintEnd index (excluded from the array)
maxCapacityintMax 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
debugDrawShapeDebugDrawShapeType of the debug draw shape
translationVector3Translation of the shape
rotationQuaternionRotation of the shape
scaleVector3Scaling of the shape