Package com.jme3.effect.shapes
Class EmitterMeshFaceShape
java.lang.Object
com.jme3.effect.shapes.EmitterMeshVertexShape
com.jme3.effect.shapes.EmitterMeshFaceShape
- All Implemented Interfaces:
- EmitterShape,- Savable,- JmeCloneable,- Cloneable
- Direct Known Subclasses:
- EmitterMeshConvexHullShape
This emitter shape emits the particles from the given shape's faces.
- 
Field SummaryFields inherited from class com.jme3.effect.shapes.EmitterMeshVertexShapenormals, vertices
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidgetRandomPoint(Vector3f store) Randomly selects a point on a random face.voidgetRandomPointAndNormal(Vector3f store, Vector3f normal) Randomly selects a point on a random face.voidThis method sets the meshes that will form the emitter's shape.Methods inherited from class com.jme3.effect.shapes.EmitterMeshVertexShapecloneFields, deepClone, jmeClone, read, write
- 
Constructor Details- 
EmitterMeshFaceShapepublic EmitterMeshFaceShape()Empty constructor. Sets nothing.
- 
EmitterMeshFaceShapeConstructor. 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- 
setMeshesDescription copied from class:EmitterMeshVertexShapeThis method sets the meshes that will form the emitter's shape.- Overrides:
- setMeshesin class- EmitterMeshVertexShape
- Parameters:
- meshes- a list of meshes that will form the emitter's shape
 
- 
getRandomPointRandomly selects a point on a random face.- Specified by:
- getRandomPointin interface- EmitterShape
- Overrides:
- getRandomPointin class- EmitterMeshVertexShape
- Parameters:
- store- storage for the coordinates of the selected point
 
- 
getRandomPointAndNormalRandomly selects a point on a random face. Thenormalargument is set to the normal of the selected face.- Specified by:
- getRandomPointAndNormalin interface- EmitterShape
- Overrides:
- getRandomPointAndNormalin class- EmitterMeshVertexShape
- Parameters:
- store- storage for the coordinates of the selected point
- normal- storage for the normal of the selected face
 
 
-