Class DynamicsInfluencer
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.Influencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.DynamicsInfluencer
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
public class DynamicsInfluencer extends Influencer
It's anInfluencerwhich controls the particles dynamics (movement, rotations).
-
-
Field Summary
Fields Modifier and Type Field Description Array<DynamicsModifier>velocities
-
Constructor Summary
Constructors Constructor Description DynamicsInfluencer()DynamicsInfluencer(DynamicsInfluencer velocityInfluencer)DynamicsInfluencer(DynamicsModifier... velocities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.voidallocateChannels()Called during initialization to allocate additional particles channelsDynamicsInfluencercopy()voidinit()Called once during intializationvoidread(Json json, JsonValue jsonData)voidset(ParticleController particleController)voidupdate()Called to execute the component behavior.voidwrite(Json json)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
dispose, end, killParticles, load, save, start
-
-
-
-
Field Detail
-
velocities
public Array<DynamicsModifier> velocities
-
-
Constructor Detail
-
DynamicsInfluencer
public DynamicsInfluencer()
-
DynamicsInfluencer
public DynamicsInfluencer(DynamicsModifier... velocities)
-
DynamicsInfluencer
public DynamicsInfluencer(DynamicsInfluencer velocityInfluencer)
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classParticleControllerComponent
-
set
public void set(ParticleController particleController)
- Overrides:
setin classParticleControllerComponent
-
init
public void init()
Description copied from class:ParticleControllerComponentCalled once during intialization- Overrides:
initin classParticleControllerComponent
-
activateParticles
public void activateParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to initialize new emitted particles.- Overrides:
activateParticlesin classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponentCalled to execute the component behavior.- Overrides:
updatein classParticleControllerComponent
-
copy
public DynamicsInfluencer copy()
- Specified by:
copyin classParticleControllerComponent
-
write
public void write(Json json)
- Specified by:
writein interfaceJson.Serializable- Overrides:
writein classParticleControllerComponent
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable- Overrides:
readin classParticleControllerComponent
-
-