Class ParticleControllerComponent
- java.lang.Object
-
- com.badlogic.gdx.graphics.g3d.particles.ParticleControllerComponent
-
- All Implemented Interfaces:
ResourceData.Configurable,Disposable,Json.Serializable
- Direct Known Subclasses:
Emitter,Influencer,ParticleControllerRenderer
public abstract class ParticleControllerComponent extends java.lang.Object implements Disposable, Json.Serializable, ResourceData.Configurable
It's the base class of everyParticleControllercomponent. A component duty is to participate in one or some events during the simulation. (i.e it can handle the particles emission or modify particle properties, etc.).
-
-
Field Summary
Fields Modifier and Type Field Description protected ParticleControllercontrollerprotected static Matrix3TMP_M3protected static Matrix4TMP_M4protected static QuaternionTMP_Qprotected static QuaternionTMP_Q2protected static Vector3TMP_V1protected static Vector3TMP_V2protected static Vector3TMP_V3protected static Vector3TMP_V4protected static Vector3TMP_V5protected static Vector3TMP_V6
-
Constructor Summary
Constructors Constructor Description ParticleControllerComponent()
-
Method Summary
All Methods Instance Methods Abstract 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 channelsabstract ParticleControllerComponentcopy()voiddispose()Releases all resources of this object.voidend()Called at the end of the simulation.voidinit()Called once during intializationvoidkillParticles(int startIndex, int count)Called to notify which particles have been killed.voidload(AssetManager manager, ResourceData data)voidread(Json json, JsonValue jsonData)voidsave(AssetManager manager, ResourceData data)voidset(ParticleController particleController)voidstart()Called at the start of the simulation.voidupdate()Called to execute the component behavior.voidwrite(Json json)
-
-
-
Field Detail
-
TMP_V1
protected static final Vector3 TMP_V1
-
TMP_V2
protected static final Vector3 TMP_V2
-
TMP_V3
protected static final Vector3 TMP_V3
-
TMP_V4
protected static final Vector3 TMP_V4
-
TMP_V5
protected static final Vector3 TMP_V5
-
TMP_V6
protected static final Vector3 TMP_V6
-
TMP_Q
protected static final Quaternion TMP_Q
-
TMP_Q2
protected static final Quaternion TMP_Q2
-
TMP_M3
protected static final Matrix3 TMP_M3
-
TMP_M4
protected static final Matrix4 TMP_M4
-
controller
protected ParticleController controller
-
-
Method Detail
-
activateParticles
public void activateParticles(int startIndex, int count)Called to initialize new emitted particles.
-
killParticles
public void killParticles(int startIndex, int count)Called to notify which particles have been killed.
-
update
public void update()
Called to execute the component behavior.
-
init
public void init()
Called once during intialization
-
start
public void start()
Called at the start of the simulation.
-
end
public void end()
Called at the end of the simulation.
-
dispose
public void dispose()
Description copied from interface:DisposableReleases all resources of this object.- Specified by:
disposein interfaceDisposable
-
copy
public abstract ParticleControllerComponent copy()
-
allocateChannels
public void allocateChannels()
Called during initialization to allocate additional particles channels
-
set
public void set(ParticleController particleController)
-
save
public void save(AssetManager manager, ResourceData data)
- Specified by:
savein interfaceResourceData.Configurable
-
load
public void load(AssetManager manager, ResourceData data)
- Specified by:
loadin interfaceResourceData.Configurable
-
write
public void write(Json json)
- Specified by:
writein interfaceJson.Serializable
-
read
public void read(Json json, JsonValue jsonData)
- Specified by:
readin interfaceJson.Serializable
-
-