Class SpawnInfluencer
- 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.SpawnInfluencer
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
public class SpawnInfluencer extends Influencer
It's anInfluencerwhich controls where the particles will be spawned.
-
-
Field Summary
Fields Modifier and Type Field Description SpawnShapeValuespawnShapeValue
-
Constructor Summary
Constructors Constructor Description SpawnInfluencer()SpawnInfluencer(SpawnInfluencer source)SpawnInfluencer(SpawnShapeValue spawnShapeValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivateParticles(int startIndex, int count)Called to initialize new emitted particles.voidallocateChannels()Called during initialization to allocate additional particles channelsSpawnInfluencercopy()voidinit()Called once during intializationvoidload(AssetManager manager, ResourceData data)voidread(Json json, JsonValue jsonData)voidsave(AssetManager manager, ResourceData data)voidstart()Called at the start of the simulation.voidwrite(Json json)-
Methods inherited from class com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
dispose, end, killParticles, set, update
-
-
-
-
Field Detail
-
spawnShapeValue
public SpawnShapeValue spawnShapeValue
-
-
Constructor Detail
-
SpawnInfluencer
public SpawnInfluencer()
-
SpawnInfluencer
public SpawnInfluencer(SpawnShapeValue spawnShapeValue)
-
SpawnInfluencer
public SpawnInfluencer(SpawnInfluencer source)
-
-
Method Detail
-
init
public void init()
Description copied from class:ParticleControllerComponentCalled once during intialization- Overrides:
initin classParticleControllerComponent
-
allocateChannels
public void allocateChannels()
Description copied from class:ParticleControllerComponentCalled during initialization to allocate additional particles channels- Overrides:
allocateChannelsin classParticleControllerComponent
-
start
public void start()
Description copied from class:ParticleControllerComponentCalled at the start of the simulation.- Overrides:
startin classParticleControllerComponent
-
activateParticles
public void activateParticles(int startIndex, int count)Description copied from class:ParticleControllerComponentCalled to initialize new emitted particles.- Overrides:
activateParticlesin classParticleControllerComponent
-
copy
public SpawnInfluencer copy()
- Specified by:
copyin classParticleControllerComponent
-
write
public void write(Json json)
- Specified by:
writein interfaceJson.Serializable- Overrides:
writein classParticleControllerComponent
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable- Overrides:
readin classParticleControllerComponent
-
save
public void save(AssetManager manager, ResourceData data)
- Specified by:
savein interfaceResourceData.Configurable- Overrides:
savein classParticleControllerComponent
-
load
public void load(AssetManager manager, ResourceData data)
- Specified by:
loadin interfaceResourceData.Configurable- Overrides:
loadin classParticleControllerComponent
-
-