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