Class SimpleInfluencer
- 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.SimpleInfluencer
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
- Direct Known Subclasses:
ScaleInfluencer
public abstract class SimpleInfluencer extends Influencer
It's anInfluencer
which controls a generic channel of the particles. It handles the interpolation through time usingScaledNumericValue
.
-
-
Field Summary
Fields Modifier and Type Field Description ScaledNumericValue
value
-
Constructor Summary
Constructors Constructor Description SimpleInfluencer()
SimpleInfluencer(SimpleInfluencer billboardScaleinfluencer)
-
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 channelsvoid
read(Json json, JsonValue jsonData)
void
update()
Called to execute the component behavior.void
write(Json json)
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
copy, dispose, end, init, killParticles, load, save, set, start
-
-
-
-
Field Detail
-
value
public ScaledNumericValue value
-
-
Constructor Detail
-
SimpleInfluencer
public SimpleInfluencer()
-
SimpleInfluencer
public SimpleInfluencer(SimpleInfluencer billboardScaleinfluencer)
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
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
-
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
-
-