Class MeshEmitter
java.lang.Object
com.ardor3d.extension.effect.particle.emitter.SavableParticleEmitter
com.ardor3d.extension.effect.particle.emitter.MeshEmitter
- All Implemented Interfaces:
ParticleEmitter
,Savable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
randomEmissionPoint
(Vector3 store) Get the next point from this emitter.void
read
(InputCapsule capsule) void
setOnlyVertices
(boolean onlyVertices) void
void
write
(OutputCapsule capsule) Methods inherited from class com.ardor3d.extension.effect.particle.emitter.SavableParticleEmitter
getClassTag
-
Constructor Details
-
MeshEmitter
public MeshEmitter() -
MeshEmitter
- Parameters:
source
- the mesh to use as our sourceonlyVertices
- if true, only the vertices of the emitter should be used for spawning particles. Otherwise, the mesh's face surfaces should be used.
-
-
Method Details
-
setSource
-
getSource
-
setOnlyVertices
public void setOnlyVertices(boolean onlyVertices) -
isOnlyVertices
public boolean isOnlyVertices() -
randomEmissionPoint
Description copied from interface:ParticleEmitter
Get the next point from this emitter.- Parameters:
store
- the vector to store our point in. If null, a new one is created.- Returns:
- the vector we stored in
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-