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 anInfluencerwhich controls a generic channel of the particles. It handles the interpolation through time usingScaledNumericValue.
-
-
Field Summary
Fields Modifier and Type Field Description ScaledNumericValuevalue
-
Constructor Summary
Constructors Constructor Description SimpleInfluencer()SimpleInfluencer(SimpleInfluencer billboardScaleinfluencer)
-
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 channelsvoidread(Json json, JsonValue jsonData)voidupdate()Called to execute the component behavior.voidwrite(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:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin 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
-
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
-
-