|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.effect.shapes.EmitterMeshVertexShape
public class EmitterMeshVertexShape
This emiter shape emits the particles from the given shape's vertices
Field Summary | |
---|---|
protected java.util.List<java.util.List<Vector3f>> |
normals
|
protected java.util.List<java.util.List<Vector3f>> |
vertices
|
Constructor Summary | |
---|---|
EmitterMeshVertexShape()
Empty constructor. |
|
EmitterMeshVertexShape(java.util.List<Mesh> meshes)
Constructor. |
Method Summary | |
---|---|
EmitterShape |
deepClone()
This method creates a deep clone of the current instance of the emitter shape. |
void |
getRandomPoint(Vector3f store)
This method fills the point with coordinates of randomly selected mesh vertex. |
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with coordinates of randomly selected mesh vertex. |
void |
read(JmeImporter im)
|
void |
setMeshes(java.util.List<Mesh> meshes)
This method sets the meshes that will form the emiter's shape. |
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.util.List<Vector3f>> vertices
protected java.util.List<java.util.List<Vector3f>> normals
Constructor Detail |
---|
public EmitterMeshVertexShape()
public EmitterMeshVertexShape(java.util.List<Mesh> meshes)
meshes
- a list of meshes that will form the emitter's shapeMethod Detail |
---|
public void setMeshes(java.util.List<Mesh> meshes)
meshes
- a list of meshes that will form the emitter's shapepublic void getRandomPoint(Vector3f store)
getRandomPoint
in interface EmitterShape
store
- the variable to store with coordinates of randomly selected mesh vertexpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal
in interface EmitterShape
store
- the variable to store with coordinates of randomly selected mesh vertexnormal
- filled with selected vertex's normalpublic EmitterShape deepClone()
EmitterShape
deepClone
in interface EmitterShape
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |