|
void | InitNewParticles (int numLastActive, int numActive, GBUnits.GEScaler geScaler, ref NativeArray< double3 > r, ref NativeArray< double3 > v) |
| Provide the initial positions and velocity for a range of particles. This method will be called as particles are created by the particle system. The implementing class must fill in the r[] and v[] arrays for the range specified. These arrays are indexed by [particle_num, dimension] where dimension 0,1,2 correspond to x,y,z.
|
|
|
Vector3 | position |
|
float | radius = 1f |
| Radius of the ball of particles.
|
|
GBUnits.Units | units = GBUnits.Units.DL |
|
Vector3 | velocity |
| Velocity of each particle when it is initalized.
|
|
◆ InitNewParticles()
void GravityEngine2.DustBall.InitNewParticles |
( |
int | fromParticle, |
|
|
int | toParticle, |
|
|
GBUnits.GEScaler | geScaler, |
|
|
ref NativeArray< double3 > | r, |
|
|
ref NativeArray< double3 > | v ) |
Provide the initial positions and velocity for a range of particles. This method will be called as particles are created by the particle system. The implementing class must fill in the r[] and v[] arrays for the range specified. These arrays are indexed by [particle_num, dimension] where dimension 0,1,2 correspond to x,y,z.
See the DustBox script for a sample usage of this interface.
- Parameters
-
fromParticle | |
toParticle | |
scaleWorldToGE | |
r | |
v | |
Implements GravityEngine2.IGSParticlesInit.
The documentation for this class was generated from the following file:
- ge2/GE2/Assets/GravityEngine2/Runtime/InScene/Particles/DustBall.cs