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)
This method fills the point with coordinates of randomly selected point on a random face.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with coordinates of randomly selected 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 - the variable to store with coordinates of randomly selected selected point on a random facepublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal in interface EmitterShapegetRandomPointAndNormal in class EmitterMeshVertexShapestore - the variable to store with coordinates of randomly selected selected point on a random facenormal - filled with selected face's normal