Package com.jme3.effect.shapes
Class EmitterMeshVertexShape
java.lang.Object
com.jme3.effect.shapes.EmitterMeshVertexShape
- All Implemented Interfaces:
EmitterShape,Savable,JmeCloneable,Cloneable
- Direct Known Subclasses:
EmitterMeshFaceShape
This emitter shape emits the particles from the given shape's vertices
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneFields(Cloner cloner, Object original) Called internally by com.jme3.util.clone.Cloner.This method creates a deep clone of the current instance of the emitter shape.voidgetRandomPoint(Vector3f store) This method fills the point with coordinates of randomly selected mesh vertex.voidgetRandomPointAndNormal(Vector3f store, Vector3f normal) This method fills the point with coordinates of randomly selected mesh vertex.jmeClone()Called internally by com.jme3.util.clone.Cloner.voidread(JmeImporter im) voidThis method sets the meshes that will form the emitter's shape.voidwrite(JmeExporter ex)
-
Field Details
-
vertices
-
normals
-
-
Constructor Details
-
EmitterMeshVertexShape
public EmitterMeshVertexShape()Empty constructor. Sets nothing. -
EmitterMeshVertexShape
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
This method sets the meshes that will form the emitter's shape.- Parameters:
meshes- a list of meshes that will form the emitter's shape
-
getRandomPoint
This method fills the point with coordinates of randomly selected mesh vertex.- Specified by:
getRandomPointin interfaceEmitterShape- Parameters:
store- the variable to store with coordinates of randomly selected mesh vertex
-
getRandomPointAndNormal
This method fills the point with coordinates of randomly selected mesh vertex. The normal param is filled with selected vertex's normal.- Specified by:
getRandomPointAndNormalin interfaceEmitterShape- Parameters:
store- the variable to store with coordinates of randomly selected mesh vertexnormal- filled with selected vertex's normal
-
deepClone
Description copied from interface:EmitterShapeThis method creates a deep clone of the current instance of the emitter shape.- Specified by:
deepClonein interfaceEmitterShape- Returns:
- deep clone of the current instance of the emitter shape
-
jmeClone
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
jmeClonein interfaceJmeCloneable- Returns:
- a new instance
-
cloneFields
Called internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
cloneFieldsin interfaceJmeCloneable- Parameters:
cloner- The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.original- The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
-
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-