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 Summary
Fields inherited from class com.jme3.effect.shapes.EmitterMeshVertexShape
normals, vertices - 
Constructor Summary
Constructors - 
Method Summary
Modifier 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.EmitterMeshVertexShape
cloneFields, deepClone, jmeClone, read, write 
- 
Constructor Details
- 
EmitterMeshFaceShape
public EmitterMeshFaceShape()Empty constructor. Sets nothing. - 
EmitterMeshFaceShape
Constructor. 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
- 
setMeshes
Description copied from class:EmitterMeshVertexShapeThis method sets the meshes that will form the emitter's shape.- Overrides:
 setMeshesin classEmitterMeshVertexShape- Parameters:
 meshes- a list of meshes that will form the emitter's shape
 - 
getRandomPoint
Randomly selects a point on a random face.- Specified by:
 getRandomPointin interfaceEmitterShape- Overrides:
 getRandomPointin classEmitterMeshVertexShape- Parameters:
 store- storage for the coordinates of the selected point
 - 
getRandomPointAndNormal
Randomly selects a point on a random face. Thenormalargument is set to the normal of the selected face.- Specified by:
 getRandomPointAndNormalin interfaceEmitterShape- Overrides:
 getRandomPointAndNormalin classEmitterMeshVertexShape- Parameters:
 store- storage for the coordinates of the selected pointnormal- storage for the normal of the selected face
 
 -