InitialDirectionSeed Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
Initializer which sets the initial velocity for particles based on RandomSeed information
Derived from InitialDirectionSeed:
[DataContract("InitialDirectionSeed")]
[Display("Direction", null)]
public class InitialDirectionSeed : ParticleInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialDirectionSeed() | ||
Properties | ||
DebugDraw | Should this Particle Module's bounds be displayed as a debug draw |
|
DirectionMax | Upper direction value |
|
DirectionMin | Lower direction value |
|
SeedOffset | The seed offset used to match or separate random values |
|
Methods | ||
Initialize(ParticlePool, Int32, Int32, Int32) | ||
TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3) |
Constructors
InitialDirectionSeed()
public InitialDirectionSeed()
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 |
DirectionMax
Upper direction value
[DataMember(40)]
[Display("Direction max", null)]
public Vector3 DirectionMax { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
DirectionMin
Lower direction value
[DataMember(30)]
[Display("Direction min", null)]
public Vector3 DirectionMin { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
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 |
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 |