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