Package com.jme3.effect
Class ParticlePointMesh
java.lang.Object
com.jme3.scene.Mesh
com.jme3.effect.ParticleMesh
com.jme3.effect.ParticlePointMesh
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.effect.ParticleMesh
ParticleMesh.Type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initParticleData
(ParticleEmitter emitter, int numParticles) Initialize mesh data.void
setImagesXY
(int imagesX, int imagesY) Set the images on the X and Y coordinatesvoid
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
-
ParticlePointMesh
public ParticlePointMesh()
-
-
Method Details
-
setImagesXY
public void setImagesXY(int imagesX, int imagesY) Description copied from class:ParticleMesh
Set the images on the X and Y coordinates- Specified by:
setImagesXY
in classParticleMesh
- Parameters:
imagesX
- Images on the X coordinateimagesY
- Images on the Y coordinate
-
initParticleData
Description copied from class:ParticleMesh
Initialize mesh data.- Specified by:
initParticleData
in classParticleMesh
- Parameters:
emitter
- The emitter which will use thisParticleMesh
.numParticles
- The maximum number of particles to simulate
-
updateParticleData
Description copied from class:ParticleMesh
Update the particle visual data. Typically called every frame.- Specified by:
updateParticleData
in classParticleMesh
- Parameters:
particles
- the particles to updatecam
- the camera to use for billboardinginverseRotation
- the inverse rotation matrix
-