Class ModelInfluencer.Random
- 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.ModelInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer.Random
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
- Enclosing class:
- ModelInfluencer
public static class ModelInfluencer.Random extends ModelInfluencer
Assigns a random model ofModelInfluencer.modelsto the particles.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer
ModelInfluencer.Random, ModelInfluencer.Single
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer
models
-
-
Constructor Summary
Constructors Constructor Description Random()Random(Model... models)Random(ModelInfluencer.Random influencer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.ModelInfluencer.Randomcopy()voidinit()Called once during intializationvoidkillParticles(int startIndex, int count)Called to notify which particles have been killed.-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ModelInfluencer
allocateChannels, load, save
-
-
-
-
Constructor Detail
-
Random
public Random()
-
Random
public Random(ModelInfluencer.Random influencer)
-
Random
public Random(Model... models)
-
-
Method Detail
-
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
-
killParticles
public void killParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to notify which particles have been killed.- Overrides:
killParticlesin classParticleControllerComponent
-
copy
public ModelInfluencer.Random copy()
- Specified by:
copyin classParticleControllerComponent
-
-