Package com.jme3.effect
Class ParticleMesh
java.lang.Object
com.jme3.scene.Mesh
com.jme3.effect.ParticleMesh
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
- Direct Known Subclasses:
ParticlePointMesh
,ParticleTriMesh
The
ParticleMesh
is the underlying visual implementation of a
particle emitter
.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
initParticleData
(ParticleEmitter emitter, int numParticles) Initialize mesh data.abstract void
setImagesXY
(int imagesX, int imagesY) Set the images on the X and Y coordinatesabstract void
updateParticleData
(Particle[] particles, Camera cam, Matrix3f inverseRotation) Update the particle visual data.Methods inherited from class com.jme3.scene.Mesh
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, read, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts, write
-
Constructor Details
-
ParticleMesh
public ParticleMesh()
-
-
Method Details
-
initParticleData
Initialize mesh data.- Parameters:
emitter
- The emitter which will use thisParticleMesh
.numParticles
- The maximum number of particles to simulate
-
setImagesXY
public abstract void setImagesXY(int imagesX, int imagesY) Set the images on the X and Y coordinates- Parameters:
imagesX
- Images on the X coordinateimagesY
- Images on the Y coordinate
-
updateParticleData
Update the particle visual data. Typically called every frame.- Parameters:
particles
- the particles to updatecam
- the camera to use for billboardinginverseRotation
- the inverse rotation matrix
-