Gravity Engine 2 5.1
|
Interface defining methods to be implemented to define particle positions and velocities for GravityParticles. More...
Public Member Functions | |
void | 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. | |
Interface defining methods to be implemented to define particle positions and velocities for GravityParticles.
void GravityEngine2.IGSParticlesInit.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.
fromParticle | |
toParticle | |
scaleWorldToGE | |
r | |
v |
Implemented in GravityEngine2.DustBall, and GravityEngine2.DustRing.