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
Assigns a random model of
ModelInfluencer.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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activateParticles
(int startIndex, int count) Called to initialize new emitted particles.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 Details
-
Random
public Random() -
Random
-
Random
-
-
Method Details
-
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
- Specified by:
copy
in classParticleControllerComponent
-