public class EmitterMeshFaceShape extends EmitterMeshVertexShape
normals, vertices
Constructor and Description |
---|
EmitterMeshFaceShape()
Empty constructor.
|
EmitterMeshFaceShape(java.util.List<Mesh> meshes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
getRandomPoint(Vector3f store)
Randomly selects a point on a random face.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
Randomly selects a point on a random face.
|
void |
setMeshes(java.util.List<Mesh> meshes)
This method sets the meshes that will form the emitter's shape.
|
cloneFields, deepClone, jmeClone, read, write
public EmitterMeshFaceShape()
public EmitterMeshFaceShape(java.util.List<Mesh> meshes)
meshes
- a list of meshes that will form the emitter's shapepublic void setMeshes(java.util.List<Mesh> meshes)
EmitterMeshVertexShape
setMeshes
in class EmitterMeshVertexShape
meshes
- a list of meshes that will form the emitter's shapepublic void getRandomPoint(Vector3f store)
getRandomPoint
in interface EmitterShape
getRandomPoint
in class EmitterMeshVertexShape
store
- storage for the coordinates of the selected pointpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
normal
argument is set to the normal of the selected face.getRandomPointAndNormal
in interface EmitterShape
getRandomPointAndNormal
in class EmitterMeshVertexShape
store
- storage for the coordinates of the selected pointnormal
- storage for the normal of the selected face