InitialVelocitySeed Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
Initializer which sets the initial velocity for particles based on RandomSeed information
Derived from InitialVelocitySeed:
[DataContract("InitialVelocitySeed")]
[Display("Velocity", null)]
public class InitialVelocitySeed : ParticleInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialVelocitySeed() | ||
Properties | ||
DebugDraw | Should this Particle Module's bounds be displayed as a debug draw |
|
SeedOffset | The seed offset used to match or separate random values |
|
VelocityMax | Upper velocity value |
|
VelocityMin | Lower velocity value |
|
Methods | ||
Initialize(ParticlePool, Int32, Int32, Int32) | ||
TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3) |
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
Type | Description |
---|---|
System.Boolean |
SeedOffset
The seed offset used to match or separate random values
[DataMember(8)]
[Display("Random Seed", null)]
public uint SeedOffset { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
VelocityMax
Upper velocity value
[DataMember(40)]
[Display("Velocity max", null)]
public Vector3 VelocityMax { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
VelocityMin
Lower velocity value
[DataMember(30)]
[Display("Velocity min", null)]
public Vector3 VelocityMin { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
Initialize(ParticlePool, Int32, Int32, Int32)
public override void Initialize(ParticlePool pool, int startIdx, int endIdx, int maxCapacity)
Parameters
Type | Name | Description |
---|---|---|
ParticlePool | pool | |
System.Int32 | startIdx | |
System.Int32 | endIdx | |
System.Int32 | maxCapacity |
Overrides
TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3)
public override bool TryGetDebugDrawShape(out DebugDrawShape debugDrawShape, out Vector3 translation, out Quaternion rotation, out Vector3 scale)
Parameters
Type | Name | Description |
---|---|---|
DebugDrawShape | debugDrawShape | |
Vector3 | translation | |
Quaternion | rotation | |
Vector3 | scale |
Returns
Type | Description |
---|---|
System.Boolean |