public abstract class ParticleMesh extends Mesh
ParticleMesh
is the underlying visual implementation of a
particle emitter
.Modifier and Type | Class and Description |
---|---|
static class |
ParticleMesh.Type
Type of particle mesh
|
Constructor and Description |
---|
ParticleMesh() |
Modifier and Type | Method and Description |
---|---|
abstract void |
initParticleData(ParticleEmitter emitter,
int numParticles)
Initialize mesh data.
|
abstract void |
setImagesXY(int imagesX,
int imagesY)
Set the images on the X and Y coordinates
|
abstract void |
updateParticleData(Particle[] particles,
Camera cam,
Matrix3f inverseRotation)
Update the particle visual data.
|
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
public abstract void initParticleData(ParticleEmitter emitter, int numParticles)
emitter
- The emitter which will use this ParticleMesh
.numParticles
- The maximum number of particles to simulatepublic abstract void setImagesXY(int imagesX, int imagesY)
imagesX
- Images on the X coordinateimagesY
- Images on the Y coordinatepublic abstract void updateParticleData(Particle[] particles, Camera cam, Matrix3f inverseRotation)
particles
- the particles to updatecam
- the camera to use for billboardinginverseRotation
- the inverse rotation matrix