public abstract class ParticleControllerComponent extends java.lang.Object implements Disposable, Json.Serializable, ResourceData.Configurable
ParticleController
component. 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.).Modifier and Type | Field and Description |
---|---|
protected ParticleController |
controller |
protected static Matrix3 |
TMP_M3 |
protected static Matrix4 |
TMP_M4 |
protected static Quaternion |
TMP_Q |
protected static Quaternion |
TMP_Q2 |
protected static Vector3 |
TMP_V1 |
protected static Vector3 |
TMP_V2 |
protected static Vector3 |
TMP_V3 |
protected static Vector3 |
TMP_V4 |
protected static Vector3 |
TMP_V5 |
protected static Vector3 |
TMP_V6 |
Constructor and Description |
---|
ParticleControllerComponent() |
Modifier and Type | Method and Description |
---|---|
void |
activateParticles(int startIndex,
int count)
Called to initialize new emitted particles.
|
void |
allocateChannels()
Called during initialization to allocate additional particles channels
|
abstract ParticleControllerComponent |
copy() |
void |
dispose()
Releases all resources of this object.
|
void |
end()
Called at the end of the simulation.
|
void |
init()
Called once during intialization
|
void |
killParticles(int startIndex,
int count)
Called to notify which particles have been killed.
|
void |
load(AssetManager manager,
ResourceData data) |
void |
read(Json json,
JsonValue jsonData) |
void |
save(AssetManager manager,
ResourceData data) |
void |
set(ParticleController particleController) |
void |
start()
Called at the start of the simulation.
|
void |
update()
Called to execute the component behavior.
|
void |
write(Json json) |
protected static final Vector3 TMP_V1
protected static final Vector3 TMP_V2
protected static final Vector3 TMP_V3
protected static final Vector3 TMP_V4
protected static final Vector3 TMP_V5
protected static final Vector3 TMP_V6
protected static final Quaternion TMP_Q
protected static final Quaternion TMP_Q2
protected static final Matrix3 TMP_M3
protected static final Matrix4 TMP_M4
protected ParticleController controller
public void activateParticles(int startIndex, int count)
public void killParticles(int startIndex, int count)
public void update()
public void init()
public void start()
public void end()
public void dispose()
Disposable
dispose
in interface Disposable
public abstract ParticleControllerComponent copy()
public void allocateChannels()
public void set(ParticleController particleController)
public void save(AssetManager manager, ResourceData data)
save
in interface ResourceData.Configurable
public void load(AssetManager manager, ResourceData data)
load
in interface ResourceData.Configurable
public void write(Json json)
write
in interface Json.Serializable
public void read(Json json, JsonValue jsonData)
read
in interface Json.Serializable