Gravity Engine 2 5.1
|
Dust ring. Create a ring of particles in orbit around an NBody mass. Allows full control over the orbital attributes of the ring particles. More...
Public Member Functions | |
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. | |
Public Attributes | |
BodyInitData | bodyInitData = new BodyInitData() |
GSDisplayBody | centerDisplayBody |
float | ringWidthPercent |
Width of particle ring as a percent of ring radius. | |
GBUnits.Units | units = GBUnits.Units.DL |
Dust ring. Create a ring of particles in orbit around an NBody mass. Allows full control over the orbital attributes of the ring particles.
Must be attached to a particle system with a GravityParticles component.
void GravityEngine2.DustRing.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 |
Implements GravityEngine2.IGSParticlesInit.