| Modifier and Type | Field and Description |
|---|---|
| protected BoundingBox | boundingBox
Not used by the simulation, it should represent the bounding box containing all the particles |
| protected static final float | DEFAULT_TIME_STEP
the default time step used to update the simulation |
| public float | deltaTime
Time step, DO NOT CHANGE MANUALLY |
| public float | deltaTimeSqr
Time step, DO NOT CHANGE MANUALLY |
| public Emitter | emitter
Controls the emission of the particles |
| public Array | influencers
Update the properties of the particles |
| public String | name
Name of the controller |
| public ParticleChannels | |
| public ParallelArray | particles
Particles components |
| public ParticleControllerRenderer | renderer
Controls the graphical representation of the particles |
| public Vector3 | scale
Transform flags |
| public Matrix4 | transform
Current transform of the controller DO NOT CHANGE MANUALLY |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParticleController(String name, Emitter emitter, ParticleControllerRenderer<?, ?> renderer, Influencer... influencers)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected void | |
| protected void | |
| protected void | |
| public ParticleController | |
| public void | |
| public void | draw()
Updates the renderer used by this controller, usually this means the particles will be draw inside a batch. |
| public void | |
| private <K extends Influencer> int | |
| public <K extends Influencer> K | |
| public BoundingBox | getBoundingBox()
Returns: a copy of this controller, should be used after the particle effect has been loaded. |
| public void | |
| public void | |
| public boolean | |
| public void | |
| public void | load(AssetManager manager, ResourceData<T> data)
Implements com.
|
| public void | |
| public void | |
| public <K extends Influencer> void | |
| public <K extends Influencer> boolean | replaceInfluencer(Class<K> type, K newInfluencer)
Replaces the Influencer of the given type with the one passed as parameter. |
| public void | |
| public void | rotate(Quaternion rotation)
Post-multiplies the current transformation with a rotation matrix represented by the given quaternion. |
| public void | |
| public void | save(AssetManager manager, ResourceData<T> data)
Implements com.
|
| public void | scale(float scaleX, float scaleY, float scaleZ)
Postmultiplies the current transformation with a scale matrix represented by the given scale on x,y,z. |
| public void | |
| private void | |
| public void | setTransform(Matrix4
the new transform matrix transform)Sets the current transformation to the given one. |
| public void | setTransform(float x, float y, float z, float qx, float qy, float qz, float qw, float scale)
Sets the current transformation. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| boundingBox | back to summary |
|---|---|
| protected BoundingBox boundingBox Not used by the simulation, it should represent the bounding box containing all the particles | |
| DEFAULT_TIME_STEP | back to summary |
|---|---|
| protected static final float DEFAULT_TIME_STEP the default time step used to update the simulation | |
| deltaTime | back to summary |
|---|---|
| public float deltaTime Time step, DO NOT CHANGE MANUALLY | |
| deltaTimeSqr | back to summary |
|---|---|
| public float deltaTimeSqr Time step, DO NOT CHANGE MANUALLY | |
| emitter | back to summary |
|---|---|
| public Emitter emitter Controls the emission of the particles | |
| influencers | back to summary |
|---|---|
| public Array<Influencer> influencers Update the properties of the particles | |
| name | back to summary |
|---|---|
| public String name Name of the controller | |
| particleChannels | back to summary |
|---|---|
| public ParticleChannels particleChannels | |
| particles | back to summary |
|---|---|
| public ParallelArray particles Particles components | |
| renderer | back to summary |
|---|---|
| public ParticleControllerRenderer<?, ?> renderer Controls the graphical representation of the particles | |
| scale | back to summary |
|---|---|
| public Vector3 scale Transform flags | |
| transform | back to summary |
|---|---|
| public Matrix4 transform Current transform of the controller DO NOT CHANGE MANUALLY | |
| ParticleController | back to summary |
|---|---|
| public ParticleController() | |
| ParticleController | back to summary |
|---|---|
| public ParticleController(String name, Emitter emitter, ParticleControllerRenderer<?, ?> renderer, Influencer... influencers) | |
| activateParticles | back to summary |
|---|---|
| public void activateParticles(int startIndex, int count) Generally called by the Emitter. This method will notify all the sub systems that a given amount of particles has been activated. | |
| allocateChannels | back to summary |
|---|---|
| protected void allocateChannels(int maxParticleCount) | |
| bind | back to summary |
|---|---|
| protected void bind() Bind the sub systems to the controller Called once during the init phase. | |
| calculateBoundingBox | back to summary |
|---|---|
| protected void calculateBoundingBox() Updates the bounding box using the position channel. | |
| copy | back to summary |
|---|---|
public ParticleController copy()
| |
| dispose | back to summary |
|---|---|
| public void dispose() | |
| draw | back to summary |
|---|---|
| public void draw() Updates the renderer used by this controller, usually this means the particles will be draw inside a batch. | |
| end | back to summary |
|---|---|
| public void end() End the simulation. | |
| findIndex | back to summary |
|---|---|
private <K extends Influencer> int findIndex(Class<K> type)
| |
| findInfluencer | back to summary |
|---|---|
public <K extends Influencer> K findInfluencer(Class<K> influencerClass)
| |
| getBoundingBox | back to summary |
|---|---|
public BoundingBox getBoundingBox()
| |
| getTransform | back to summary |
|---|---|
| public void getTransform(Matrix4 transform) Set the given matrix to the current transformation matrix. | |
| init | back to summary |
|---|---|
| public void init() Initialize the controller. All the sub systems will be initialized and binded to the controller. Must be called before any other method. | |
| isComplete | back to summary |
|---|---|
| public boolean isComplete() | |
| killParticles | back to summary |
|---|---|
| public void killParticles(int startIndex, int count) Generally called by the Emitter. This method will notify all the sub systems that a given amount of particles has been killed. | |
| load | back to summary |
|---|---|
| public void load(AssetManager manager, ResourceData<T> data) Implements com.
| |
| mul | back to summary |
|---|---|
| public void mul(Matrix4 transform) Postmultiplies the current transformation with the given matrix. | |
| read | back to summary |
|---|---|
| public void read(Json json, JsonValue jsonMap) Implements com.
| |
| removeInfluencer | back to summary |
|---|---|
| public <K extends Influencer> void removeInfluencer(Class<K> type) Removes the Influencer of the given type. | |
| replaceInfluencer | back to summary |
|---|---|
| public <K extends Influencer> boolean replaceInfluencer(Class<K> type, K newInfluencer) Replaces the Influencer of the given type with the one passed as parameter. | |
| reset | back to summary |
|---|---|
| public void reset() Reset the simulation. | |
| rotate | back to summary |
|---|---|
| public void rotate(Quaternion rotation) Post-multiplies the current transformation with a rotation matrix represented by the given quaternion. | |
| rotate | back to summary |
|---|---|
| public void rotate(Vector3 axis, float angle) Post-multiplies the current transformation with a rotation matrix by the given angle around the given axis.
| |
| save | back to summary |
|---|---|
| public void save(AssetManager manager, ResourceData<T> data) Implements com.
| |
| scale | back to summary |
|---|---|
| public void scale(float scaleX, float scaleY, float scaleZ) Postmultiplies the current transformation with a scale matrix represented by the given scale on x,y,z. | |
| scale | back to summary |
|---|---|
| public void scale(Vector3 scale) Postmultiplies the current transformation with a scale matrix represented by the given scale vector. | |
| setTimeStep | back to summary |
|---|---|
| private void setTimeStep(float timeStep) Sets the delta used to step the simulation | |
| setTransform | back to summary |
|---|---|
| public void setTransform(Matrix4 transform) Sets the current transformation to the given one.
| |
| setTransform | back to summary |
|---|---|
| public void setTransform(float x, float y, float z, float qx, float qy, float qz, float qw, float scale) Sets the current transformation. | |
| setTranslation | back to summary |
|---|---|
| public void setTranslation(Vector3 translation) | |
| start | back to summary |
|---|---|
| public void start() Start the simulation. | |
| translate | back to summary |
|---|---|
| public void translate(Vector3 translation) Postmultiplies the current transformation with a translation matrix represented by the given translation. | |
| update | back to summary |
|---|---|
| public void update() Updates the particles data | |
| update | back to summary |
|---|---|
| public void update(float deltaTime) Updates the particles data | |
| write | back to summary |
|---|---|
| public void write(Json json) Implements com.
| |