public class ParticleEffect extends Object implements Disposable, ResourceData.Configurable
Constructor and Description |
---|
ParticleEffect() |
ParticleEffect(ParticleController... emitters) |
ParticleEffect(ParticleEffect effect) |
Modifier and Type | Method and Description |
---|---|
ParticleEffect |
copy() |
void |
dispose()
Releases all resources of this object.
|
void |
draw() |
void |
end() |
ParticleController |
findController(String name)
Returns the controller with the specified name, or null.
|
BoundingBox |
getBoundingBox() |
Array<ParticleController> |
getControllers() |
void |
init() |
boolean |
isComplete() |
void |
load(AssetManager assetManager,
ResourceData data)
Loads all the assets required by all the controllers inside this effect.
|
void |
reset() |
void |
rotate(Quaternion rotation)
Applies the rotation to the current transformation matrix of each controller.
|
void |
rotate(Vector3 axis,
float angle)
Applies the rotation by the given angle around the given axis to the current transformation matrix of each controller.
|
void |
save(AssetManager assetManager,
ResourceData data)
Saves all the assets required by all the controllers inside this effect.
|
void |
scale(float scaleX,
float scaleY,
float scaleZ)
Applies the scale to the current transformation matrix of each controller.
|
void |
scale(Vector3 scale)
Applies the scale to the current transformation matrix of each controller.
|
void |
setBatch(Array<ParticleBatch<?>> batches)
Assign one batch, among those passed in, to each controller.
|
void |
setTransform(Matrix4 transform)
Sets the given transform matrix on each controller.
|
void |
start() |
void |
translate(Vector3 translation)
Applies the translation to the current transformation matrix of each controller.
|
void |
update() |
public ParticleEffect()
public ParticleEffect(ParticleEffect effect)
public ParticleEffect(ParticleController... emitters)
public void init()
public void start()
public void end()
public void reset()
public void update()
public void draw()
public boolean isComplete()
public void setTransform(Matrix4 transform)
public void rotate(Quaternion rotation)
public void rotate(Vector3 axis, float angle)
axis
- the rotation axisangle
- the rotation angle in degreespublic void translate(Vector3 translation)
public void scale(float scaleX, float scaleY, float scaleZ)
public void scale(Vector3 scale)
public Array<ParticleController> getControllers()
public ParticleController findController(String name)
public void dispose()
Disposable
dispose
in interface Disposable
public BoundingBox getBoundingBox()
public void setBatch(Array<ParticleBatch<?>> batches)
public ParticleEffect copy()
public void save(AssetManager assetManager, ResourceData data)
save
in interface ResourceData.Configurable
public void load(AssetManager assetManager, ResourceData data)
load
in interface ResourceData.Configurable
Copyright © 2017. All rights reserved.