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.models
to 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 void
activateParticles(int startIndex, int count)
Called to initialize new emitted particles.ModelInfluencer.Random
copy()
void
init()
Called once during intializationvoid
killParticles(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: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
-
killParticles
public void killParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to notify which particles have been killed.- Overrides:
killParticles
in classParticleControllerComponent
-
copy
public ModelInfluencer.Random copy()
- Specified by:
copy
in classParticleControllerComponent
-
-