Class RegionInfluencer.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.RegionInfluencer
-
- com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer.Random
-
- All Implemented Interfaces:
ResourceData.Configurable
,Disposable
,Json.Serializable
- Enclosing class:
- RegionInfluencer
public static class RegionInfluencer.Random extends RegionInfluencer
Assigns a random region ofRegionInfluencer.regions
to the particles.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer
RegionInfluencer.Animated, RegionInfluencer.AspectTextureRegion, RegionInfluencer.Random, RegionInfluencer.Single
-
-
Field Summary
-
Fields inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer
atlasName, regions
-
-
Constructor Summary
Constructors Constructor Description Random()
Random(TextureRegion textureRegion)
Random(RegionInfluencer.Random regionInfluencer)
Random(Texture texture)
-
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.RegionInfluencer.Random
copy()
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.influencers.RegionInfluencer
add, allocateChannels, clear, load, read, save, setAtlasName, write
-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
dispose, end, init, killParticles, set, start, update
-
-
-
-
Constructor Detail
-
Random
public Random()
-
Random
public Random(RegionInfluencer.Random regionInfluencer)
-
Random
public Random(TextureRegion textureRegion)
-
Random
public Random(Texture texture)
-
-
Method Detail
-
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 RegionInfluencer.Random copy()
- Specified by:
copy
in classParticleControllerComponent
-
-