Package com.jme3.effect.shapes
Class EmitterPointShape
java.lang.Object
com.jme3.effect.shapes.EmitterPointShape
- All Implemented Interfaces:
- EmitterShape,- Savable,- JmeCloneable,- Cloneable
An 
EmitterShape that emits particles from a single point in space.- 
Constructor SummaryConstructorsConstructorDescriptionFor serialization only.EmitterPointShape(Vector3f point) Constructs anEmitterPointShapewith the given point.
- 
Method SummaryModifier 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.getPoint()Returns the point from which particles are emitted.voidgetRandomPoint(Vector3f store) For a point shape, the generated point is always the shape's defined point.voidgetRandomPointAndNormal(Vector3f store, Vector3f normal) For a point shape, the generated point is always the shape's defined point.jmeClone()Called internally by com.jme3.util.clone.Cloner.voidread(JmeImporter im) voidSets the point from which particles are emitted.voidwrite(JmeExporter ex) 
- 
Constructor Details- 
EmitterPointShapepublic EmitterPointShape()For serialization only. Do not use.
- 
EmitterPointShapeConstructs anEmitterPointShapewith the given point.- Parameters:
- point- The point from which particles are emitted.
 
 
- 
- 
Method Details- 
deepCloneDescription copied from interface:EmitterShapeThis method creates a deep clone of the current instance of the emitter shape.- Specified by:
- deepClonein interface- EmitterShape
- Returns:
- deep clone of the current instance of the emitter shape
 
- 
jmeCloneCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
- jmeClonein interface- JmeCloneable
- Returns:
- a new instance
 
- 
cloneFieldsCalled internally by com.jme3.util.clone.Cloner. Do not call directly.- Specified by:
- cloneFieldsin interface- JmeCloneable
- 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.
 
- 
getRandomPointFor a point shape, the generated point is always the shape's defined point.- Specified by:
- getRandomPointin interface- EmitterShape
- Parameters:
- store- The- Vector3fto store the generated point in.
 
- 
getRandomPointAndNormalFor a point shape, the generated point is always the shape's defined point. The normal is not defined for a point shape, so this method does not modify the normal parameter.- Specified by:
- getRandomPointAndNormalin interface- EmitterShape
- Parameters:
- store- The- Vector3fto store the generated point in.
- normal- The- Vector3fto store the generated normal in (unused).
 
- 
getPointReturns the point from which particles are emitted.- Returns:
- The point.
 
- 
setPointSets the point from which particles are emitted.- Parameters:
- point- The new point.
 
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
 
-