InitialPositionSeed Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
The InitialPositionSeed is an initializer which sets the particle's initial position at the time of spawning
[DataContract("InitialPositionSeed")]
[Display("Position", null)]
public class InitialPositionSeed : ParticleInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialPositionSeed() | Default constructor which also registers the fields required by this updater |
|
Fields | ||
Interpolate | If set to |
|
Properties | ||
DebugDraw | Should this Particle Module's bounds be displayed as a debug draw |
|
PositionMax | The right upper front corner of the box |
|
PositionMin | The left bottom back corner of the box |
|
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) | Attepmts to get a debug shape (shape type and location matrix) for the current module in order to display its boundaries better |
Constructors
InitialPositionSeed()
Default constructor which also registers the fields required by this updater
public InitialPositionSeed()
Fields
Interpolate
If set to true
it will interpolate the particles between the old and the new position, rather than using only the new one
[DataMember(50)]
[Display("Interpolate", null)]
public bool Interpolate
Field Value
Type | Description |
---|---|
System.Boolean |
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 |
PositionMax
The right upper front corner of the box
[DataMember(40)]
[Display("Position max", null)]
public Vector3 PositionMax { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
PositionMin
The left bottom back corner of the box
[DataMember(30)]
[Display("Position min", null)]
public Vector3 PositionMin { 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)
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
Type | Name | Description |
---|---|---|
DebugDrawShape | debugDrawShape | Type of the debug draw shape |
Vector3 | translation | Translation of the shape |
Quaternion | rotation | Rotation of the shape |
Vector3 | scale | Scaling of the shape |
Returns
Type | Description |
---|---|
System.Boolean |