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)
This method fills the point with coordinates of randomly selected point inside a convex hull
of randomly selected mesh.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with coordinates of randomly selected point inside a convex hull
of 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
- the variable to store with coordinates of randomly selected selected point inside a convex hull
of randomly selected meshpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal
in interface EmitterShape
getRandomPointAndNormal
in class EmitterMeshFaceShape
store
- the variable to store with coordinates of randomly selected selected point inside a convex hull
of randomly selected meshnormal
- not used in this class