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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getRandomPoint
(Vector3f store) Randomly selects a point on a random face.void
getRandomPointAndNormal
(Vector3f store, Vector3f normal) Randomly selects a point on a random face.void
This 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:EmitterMeshVertexShape
This method sets the meshes that will form the emitter's shape.- Overrides:
setMeshes
in 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:
getRandomPoint
in interfaceEmitterShape
- Overrides:
getRandomPoint
in classEmitterMeshVertexShape
- Parameters:
store
- storage for the coordinates of the selected point
-
getRandomPointAndNormal
Randomly selects a point on a random face. Thenormal
argument is set to the normal of the selected face.- Specified by:
getRandomPointAndNormal
in interfaceEmitterShape
- Overrides:
getRandomPointAndNormal
in classEmitterMeshVertexShape
- Parameters:
store
- storage for the coordinates of the selected pointnormal
- storage for the normal of the selected face
-