com.jmex.effects.particles
Class ParticleMesh
java.lang.Object
com.jme.scene.Spatial
com.jme.scene.Node
com.jmex.effects.particles.ParticleSystem
com.jmex.effects.particles.ParticleMesh
- All Implemented Interfaces:
- Savable, java.io.Serializable
public class ParticleMesh
- extends ParticleSystem
ParticleMesh is a particle system that uses TriMesh as its underlying
geometric data.
- Version:
- $Id: ParticleMesh.java 4133 2009-03-19 20:40:11Z blaine.dev $
- Author:
- Joshua Slack
- See Also:
- Serialized Form
Fields inherited from class com.jmex.effects.particles.ParticleSystem |
absUpVector, abUpMinUp, appearanceColors, cameraFacing, controller, DEFAULT_END_COLOR, DEFAULT_END_SIZE, DEFAULT_MAX_ANGLE, DEFAULT_MAX_LIFE, DEFAULT_MIN_LIFE, DEFAULT_START_COLOR, DEFAULT_START_SIZE, emissionDirection, emitterTransform, emitType, endColor, endMass, endSize, endSpin, geometryCoordinates, initialVelocity, invScale, leftVector, matData, maximumAngle, maximumLifeTime, minimumAngle, minimumLifeTime, numParticles, oldEmit, originCenter, originOffset, particleGeom, particleOrientation, particles, particlesInWorldCoords, particleType, psGeom, psLine, psRect, psRing, ramp, releaseRate, rotateWithScene, rotMatrix, startColor, startMass, startSize, startSpin, startTexIndex, texAnimation, texQuantity, upVector, upXemit, velocityAligned, workVect2, workVect3, worldEmit |
Fields inherited from class com.jme.scene.Spatial |
cullHint, frustrumIntersects, geometricalControllers, isCollidable, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
Methods inherited from class com.jmex.effects.particles.ParticleSystem |
addController, addInfluence, clearInfluences, forceRespawn, getEmissionDirection, getEmitterTransform, getEmitType, getEndColor, getEndMass, getEndSize, getEndSpin, getGeometry, getInfluences, getInitialVelocity, getInvScale, getLeftVector, getLine, getMaximumAngle, getMaximumLifeTime, getMinimumAngle, getMinimumLifeTime, getNumParticles, getOriginCenter, getOriginOffset, getParticle, getParticleController, getParticleOrientation, getParticleType, getRamp, getRandomAngle, getRandomLifeSpan, getRandomVelocity, getRectangle, getReleaseRate, getReleaseVariance, getRing, getRotMatrix, getStartColor, getStartMass, getStartSize, getStartSpin, getStartTexIndex, getTexAnimation, getTexQuantity, getUpVector, getVertsForParticleType, getWorldEmit, initAllParticlesLocation, initParticleLocation, isActive, isCameraFacing, isParticlesInWorldCoords, isRotateWithScene, isVelocityAligned, recreate, removeInfluence, rotateVectorSpeed, setCameraFacing, setControlFlow, setEmissionDirection, setEmitterTransform, setEmitType, setEndColor, setEndMass, setEndSize, setEndSpin, setGeometry, setGeometry, setGeometry, setGeometry, setInitialVelocity, setInvScale, setLeftVector, setMaximumAngle, setMaximumLifeTime, setMinimumAngle, setMinimumLifeTime, setNumParticles, setOriginOffset, setParticleMass, setParticleOrientation, setParticlesInWorldCoords, setParticleSpinSpeed, setParticleType, setRamp, setReleaseRate, setReleaseVariance, setRepeatType, setRotateWithScene, setRotMatrix, setSpeed, setStartColor, setStartMass, setStartSize, setStartSpin, setStartTexIndex, setTexAnimation, setTexQuantity, setUpVector, setVelocityAligned, setWorldEmit, updateGeometricState, updateInvScale, updateRotationMatrix, updateWorldBound, updateWorldBoundManually, warmUp |
Methods inherited from class com.jme.scene.Node |
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldData, updateWorldVectors |
Methods inherited from class com.jme.scene.Spatial |
calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, getClassTag, getController, getControllerCount, getControllers, getCullHint, getLastFrustumIntersection, getLightCombineMode, getLocalCullHint, getLocalLightCombineMode, getLocalNormalsMode, getLocalRenderQueueMode, getLocalRotation, getLocalScale, getLocalTextureCombineMode, getLocalToWorldMatrix, getLocalTranslation, getLocks, getName, getNormalsMode, getParent, getRenderQueueMode, getRenderState, getRenderState, getTextureCombineMode, getUserData, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, hasAncestor, isCollidable, localToWorld, lock, lock, lockBranch, lockMeshes, lookAt, onDraw, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeController, removeFromParent, removeUserData, rotateUpTo, setCullHint, setIsCollidable, setLastFrustumIntersection, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setLocalTranslation, setLocks, setLocks, setName, setNormalsMode, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParticleMesh
public ParticleMesh()
ParticleMesh
public ParticleMesh(java.lang.String name,
int numParticles)
ParticleMesh
public ParticleMesh(java.lang.String name,
int numParticles,
ParticleSystem.ParticleType type)
ParticleMesh
public ParticleMesh(java.lang.String name,
TriMesh geom)
initializeParticles
protected void initializeParticles(int numParticles)
- Specified by:
initializeParticles
in class ParticleSystem
stopEmitting
public void stopEmitting()
- Stop emiting particles
Kill all available particles. (status=dead)
draw
public void draw(Renderer r)
- Description copied from class:
Node
draw
calls the onDraw method for each child maintained by
this node.
- Overrides:
draw
in class Node
- Parameters:
r
- the renderer to draw to.- See Also:
Spatial.draw(com.jme.renderer.Renderer)
resetParticleVelocity
public void resetParticleVelocity(int i)
- Overrides:
resetParticleVelocity
in class ParticleSystem
isUseMeshTexCoords
public boolean isUseMeshTexCoords()
setUseMeshTexCoords
public void setUseMeshTexCoords(boolean useMeshTexCoords)
isUseTriangleNormalEmit
public boolean isUseTriangleNormalEmit()
setUseTriangleNormalEmit
public void setUseTriangleNormalEmit(boolean useTriangleNormalEmit)
write
public void write(JMEExporter e)
throws java.io.IOException
- Specified by:
write
in interface Savable
- Overrides:
write
in class ParticleSystem
- Throws:
java.io.IOException
read
public void read(JMEImporter e)
throws java.io.IOException
- Specified by:
read
in interface Savable
- Overrides:
read
in class ParticleSystem
- Throws:
java.io.IOException
getParticleGeometry
public TriMesh getParticleGeometry()
- Specified by:
getParticleGeometry
in class ParticleSystem