public class DynamicsInfluencer extends Influencer
Influencer which controls the particles dynamics (movement, rotations).| Modifier and Type | Field and Description |
|---|---|
Array<DynamicsModifier> |
velocities |
| Constructor and Description |
|---|
DynamicsInfluencer() |
DynamicsInfluencer(DynamicsInfluencer velocityInfluencer) |
DynamicsInfluencer(DynamicsModifier... velocities) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateParticles(int startIndex,
int count)
Called to initialize new emitted particles.
|
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
DynamicsInfluencer |
copy() |
void |
init()
Called once during intialization
|
void |
read(Json json,
JsonValue jsonData) |
void |
set(ParticleController particleController) |
void |
update()
Called to execute the component behavior.
|
void |
write(Json json) |
dispose, end, killParticles, load, save, startpublic Array<DynamicsModifier> velocities
public DynamicsInfluencer()
public DynamicsInfluencer(DynamicsModifier... velocities)
public DynamicsInfluencer(DynamicsInfluencer velocityInfluencer)
public void allocateChannels()
ParticleControllerComponentallocateChannels in class ParticleControllerComponentpublic void set(ParticleController particleController)
set in class ParticleControllerComponentpublic void init()
ParticleControllerComponentinit in class ParticleControllerComponentpublic void activateParticles(int startIndex,
int count)
ParticleControllerComponentactivateParticles in class ParticleControllerComponentpublic void update()
ParticleControllerComponentupdate in class ParticleControllerComponentpublic DynamicsInfluencer copy()
copy in class ParticleControllerComponentpublic void write(Json json)
write in interface Json.Serializablewrite in class ParticleControllerComponentpublic void read(Json json, JsonValue jsonData)
read in interface Json.Serializableread in class ParticleControllerComponent