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 anInfluencer
which 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 void
activateParticles(int startIndex, int count)
Called to initialize new emitted particles.void
allocateChannels()
Called during initialization to allocate additional particles channelsDynamicsInfluencer
copy()
void
init()
Called once during intializationvoid
read(Json json, JsonValue jsonData)
void
set(ParticleController particleController)
void
update()
Called to execute the component behavior.void
write(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:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
in classParticleControllerComponent
-
set
public void set(ParticleController particleController)
- Overrides:
set
in classParticleControllerComponent
-
init
public void init()
Description copied from class:ParticleControllerComponent
Called once during intialization- Overrides:
init
in classParticleControllerComponent
-
activateParticles
public void activateParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to initialize new emitted particles.- Overrides:
activateParticles
in classParticleControllerComponent
-
update
public void update()
Description copied from class:ParticleControllerComponent
Called to execute the component behavior.- Overrides:
update
in classParticleControllerComponent
-
copy
public DynamicsInfluencer copy()
- Specified by:
copy
in classParticleControllerComponent
-
write
public void write(Json json)
- Specified by:
write
in interfaceJson.Serializable
- Overrides:
write
in classParticleControllerComponent
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
read
in interfaceJson.Serializable
- Overrides:
read
in classParticleControllerComponent
-
-