Package com.jme3.effect.shapes
Class EmitterMeshConvexHullShape
java.lang.Object
com.jme3.effect.shapes.EmitterMeshVertexShape
com.jme3.effect.shapes.EmitterMeshFaceShape
com.jme3.effect.shapes.EmitterMeshConvexHullShape
- All Implemented Interfaces:
- EmitterShape,- Savable,- JmeCloneable,- Cloneable
This emitter shape emits the particles from the given shape's interior constrained by its convex hull
 (a geometry that tightly wraps the mesh). So in case of multiple meshes some vertices may appear
 in a space between them.
- 
Field SummaryFields inherited from class com.jme3.effect.shapes.EmitterMeshVertexShapenormals, vertices
- 
Constructor SummaryConstructorsConstructorDescriptionEmpty constructor.EmitterMeshConvexHullShape(List<Mesh> meshes) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionvoidgetRandomPoint(Vector3f store) Randomly selects a point inside the convex hull of a randomly selected mesh.voidgetRandomPointAndNormal(Vector3f store, Vector3f normal) Randomly selects a point inside the convex hull of a randomly selected mesh.Methods inherited from class com.jme3.effect.shapes.EmitterMeshFaceShapesetMeshesMethods inherited from class com.jme3.effect.shapes.EmitterMeshVertexShapecloneFields, deepClone, jmeClone, read, write
- 
Constructor Details- 
EmitterMeshConvexHullShapepublic EmitterMeshConvexHullShape()Empty constructor. Sets nothing.
- 
EmitterMeshConvexHullShapeConstructor. It stores a copy of vertex list of all meshes.- Parameters:
- meshes- a list of meshes that will form the emitter's shape
 
 
- 
- 
Method Details- 
getRandomPointRandomly selects a point inside the convex hull of a randomly selected mesh.- Specified by:
- getRandomPointin interface- EmitterShape
- Overrides:
- getRandomPointin class- EmitterMeshFaceShape
- Parameters:
- store- storage for the coordinates of the selected point
 
- 
getRandomPointAndNormalRandomly selects a point inside the convex hull of a randomly selected mesh. Thenormalargument is not used.- Specified by:
- getRandomPointAndNormalin interface- EmitterShape
- Overrides:
- getRandomPointAndNormalin class- EmitterMeshFaceShape
- Parameters:
- store- storage for the coordinates of the selected point
- normal- not used in this class
 
 
-