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, writepublic 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)
EmitterMeshVertexShapesetMeshes in class EmitterMeshVertexShapemeshes - a list of meshes that will form the emitter's shapepublic void getRandomPoint(Vector3f store)
getRandomPoint in interface EmitterShapegetRandomPoint in class EmitterMeshVertexShapestore - 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 EmitterShapegetRandomPointAndNormal in class EmitterMeshVertexShapestore - storage for the coordinates of the selected pointnormal - storage for the normal of the selected face