com.jmex.physics
Class StaticPhysicsNode

java.lang.Object
  extended by com.jme.scene.Spatial
      extended by com.jme.scene.Node
          extended by com.jmex.physics.PhysicsNode
              extended by com.jmex.physics.StaticPhysicsNode
All Implemented Interfaces:
com.jme.util.export.Savable, PhysicsSpatial, java.io.Serializable

public abstract class StaticPhysicsNode
extends PhysicsNode

This PhysicsNode represents a physical entity that cannot be moved or rotated by forces.

PhysicsNodes are created solely by the PhysicsSpace (methods PhysicsSpace.createDynamicNode() and PhysicsSpace.createStaticNode()).

Author:
Irrisor
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.Spatial
com.jme.scene.Spatial.CullHint, com.jme.scene.Spatial.LightCombineMode, com.jme.scene.Spatial.NormalsMode, com.jme.scene.Spatial.TextureCombineMode
 
Field Summary
 
Fields inherited from class com.jmex.physics.PhysicsNode
MATERIAL_PROPERTY
 
Fields inherited from class com.jme.scene.Node
children
 
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
 
Constructor Summary
protected StaticPhysicsNode()
           
protected StaticPhysicsNode(java.lang.String name)
           
 
Method Summary
 java.lang.Class getClassTag()
           
 boolean isResting()
           
 boolean isStatic()
           
 
Methods inherited from class com.jmex.physics.PhysicsNode
createBox, createCapsule, createCylinder, createMesh, createRay, createSphere, delete, drawDebugInfo, generatePhysicsGeometry, generatePhysicsGeometry, generatePhysicsGeometry, generatePhysicsGeometry, getCollisionEventHandler, getCollisionGroup, getMaterial, getPhysicsNode, getSpace, isActive, read, setActive, setCollisionGroup, setMaterial, setParent, write
 
Methods inherited from class com.jme.scene.Node
applyRenderState, attachChild, attachChildAt, childChange, detachAllChildren, detachChild, detachChildAt, detachChildNamed, draw, findCollisions, findPick, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, hasCollision, lockBounds, lockMeshes, lockShadows, lockTransforms, setModelBound, sortLights, swapChildren, unlockBounds, unlockMeshes, unlockShadows, unlockTransforms, updateModelBound, updateWorldBound, updateWorldData, updateWorldVectors
 
Methods inherited from class com.jme.scene.Spatial
addController, calculateCollisions, calculatePick, clearControllers, clearRenderState, clearRenderState, 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, setRenderQueueMode, setRenderState, setTextureCombineMode, setUserData, setZOrder, setZOrder, toString, unlock, unlock, unlockBranch, unlockMeshes, updateGeometricState, updateRenderState, updateRenderState, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, worldToLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaticPhysicsNode

protected StaticPhysicsNode(java.lang.String name)

StaticPhysicsNode

protected StaticPhysicsNode()
Method Detail

isStatic

public final boolean isStatic()
Specified by:
isStatic in class PhysicsNode
Returns:
true if this is a static (passive, immovable) node.

isResting

public boolean isResting()
Specified by:
isResting in class PhysicsNode
Returns:
true if the physics engine believes that this nodes is resting like described in the DynamicPhysicsNode.rest() method. For static nodes this return true, always.
See Also:
DynamicPhysicsNode.rest()

getClassTag

public java.lang.Class getClassTag()
Specified by:
getClassTag in interface com.jme.util.export.Savable
Overrides:
getClassTag in class PhysicsNode