public class EmitterMeshConvexHullShape extends EmitterMeshFaceShape
normals, vertices
Constructor and Description |
---|
EmitterMeshConvexHullShape()
Empty constructor.
|
EmitterMeshConvexHullShape(java.util.List<Mesh> meshes)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
getRandomPoint(Vector3f store)
Randomly selects a point inside the convex hull
of a randomly selected mesh.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
Randomly selects a point inside the convex hull
of a randomly selected mesh.
|
setMeshes
cloneFields, deepClone, jmeClone, read, write
public EmitterMeshConvexHullShape()
public EmitterMeshConvexHullShape(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
getRandomPoint
in class EmitterMeshFaceShape
store
- storage for the coordinates of the selected pointpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
normal
argument is not used.getRandomPointAndNormal
in interface EmitterShape
getRandomPointAndNormal
in class EmitterMeshFaceShape
store
- storage for the coordinates of the selected pointnormal
- not used in this class