InitialPositionParent Class
Namespace: Stride.Particles.InitializersAssembly: Stride.Particles.dll
The InitialPositionParent is an initializer which sets the particle's initial position at the time of spawning
System.Object → ParticleTransform → ParticleModule → ParticleInitializer → ParticleChildInitializer →
InitialPositionParent
Derived from InitialPositionParent:
[DataContract("InitialPositionParent")]
[Display("Position (parent)", null)]
public class InitialPositionParent : ParticleChildInitializer
Name | Description | |
---|---|---|
Constructors | ||
InitialPositionParent() | Default constructor which also registers the fields required by this updater |
|
Properties | ||
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) |
Constructors
InitialPositionParent()
Default constructor which also registers the fields required by this updater
public InitialPositionParent()
Properties
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(20)]
[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 |