Package com.jme3.effect.shapes
Class EmitterSphereShape
java.lang.Object
com.jme3.effect.shapes.EmitterSphereShape
- All Implemented Interfaces:
EmitterShape,Savable,JmeCloneable,Cloneable
-
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.floatvoidgetRandomPoint(Vector3f store) This method fills in the initial position of the particle.voidgetRandomPointAndNormal(Vector3f store, Vector3f normal) This method fills in the initial position of the particle and its normal vector.jmeClone()Called internally by com.jme3.util.clone.Cloner.voidread(JmeImporter im) voidvoidsetRadius(float radius) voidwrite(JmeExporter ex)
-
Constructor Details
-
EmitterSphereShape
public EmitterSphereShape() -
EmitterSphereShape
-
-
Method Details
-
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.
-
getRandomPoint
Description copied from interface:EmitterShapeThis method fills in the initial position of the particle.- Specified by:
getRandomPointin interfaceEmitterShape- Parameters:
store- store variable for initial position
-
getRandomPointAndNormal
Description copied from interface:EmitterShapeThis method fills in the initial position of the particle and its normal vector.- Specified by:
getRandomPointAndNormalin interfaceEmitterShape- Parameters:
store- store variable for initial positionnormal- store variable for initial normal
-
getCenter
-
setCenter
-
getRadius
public float getRadius() -
setRadius
public void setRadius(float radius) -
write
- Specified by:
writein interfaceSavable- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Throws:
IOException
-