Class ColorInfluencer.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.ColorInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer.Random
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
- Enclosing class:
- ColorInfluencer
public static class ColorInfluencer.Random extends ColorInfluencer
It's anInfluencer
which assigns a random color when a particle is activated.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.ColorInfluencer
ColorInfluencer.Random, ColorInfluencer.Single
-
-
Constructor Summary
Constructors Constructor Description Random()
-
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 channelsColorInfluencer.Random
copy()
-
-
-
Method Detail
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponent
Called during initialization to allocate additional particles channels- Overrides:
allocateChannels
in classColorInfluencer
-
activateParticles
public void activateParticles(int startIndex, int count)
Description copied from class:ParticleControllerComponent
Called to initialize new emitted particles.- Overrides:
activateParticles
in classParticleControllerComponent
-
copy
public ColorInfluencer.Random copy()
- Specified by:
copy
in classParticleControllerComponent
-
-