|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jmex.physics.PhysicsCollisionGeometry
com.jmex.physics.geometry.PhysicsMesh
public abstract class PhysicsMesh
A PhysicsMesh can represent any triangle soup that is used a collision geometry.
copyFrom(com.jme.scene.TriMesh),
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.PhysicsCollisionGeometry |
|---|
MATERIAL_PROPERTY, PHYSICS_NODE_PROPERTY |
| 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 |
PhysicsMesh(PhysicsNode node)
|
| Method Summary | |
|---|---|
abstract void |
copyFrom(com.jme.scene.TriMesh triMesh)
Copy data from a scene TriMesh to the collision info. |
abstract void |
copyFrom(com.jme.scene.TriMesh triMesh,
float volume,
com.jme.math.Vector3f centerOfMass,
com.jme.math.Matrix3f inertia)
Copy data from a scene TriMesh to the collision info. |
java.lang.Class |
getClassTag()
|
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class com.jmex.physics.PhysicsCollisionGeometry |
|---|
draw, drawDebugShape, findCollisions, findPick, getCollisionEventHandler, getMaterial, getPhysicsNode, getTriangleCount, getVertexCount, getVolume, hasCollision, read, readPhysicsNodeFromInputCapsule, setMaterial, setModelBound, setNode, setParent, updateModelBound, updateWorldBound |
| Methods inherited from class com.jme.scene.Spatial |
|---|
addController, applyRenderState, 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, lockBounds, lockBranch, lockMeshes, lockMeshes, lockShadows, lockTransforms, 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, sortLights, toString, unlock, unlock, unlockBounds, unlockBranch, unlockMeshes, unlockMeshes, unlockShadows, unlockTransforms, updateGeometricState, updateRenderState, updateRenderState, updateWorldData, updateWorldRotation, updateWorldScale, updateWorldTranslation, updateWorldVectors, updateWorldVectors, worldToLocal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected PhysicsMesh(PhysicsNode node)
| Method Detail |
|---|
public abstract void copyFrom(com.jme.scene.TriMesh triMesh)
DynamicPhysicsNode volume, center of mass and inertia are automatically computed.
To avoid this computation use copyFrom(TriMesh, float, Vector3f, Matrix3f)
triMesh - where to copy triangle data fromcopyFrom(TriMesh, float, Vector3f, Matrix3f)
public abstract void copyFrom(com.jme.scene.TriMesh triMesh,
float volume,
com.jme.math.Vector3f centerOfMass,
com.jme.math.Matrix3f inertia)
triMesh - where to copy triangle data fromvolume - volume of the trimesh (see PhysicsCollisionGeometry.getVolume())centerOfMass - center of mass for this trimeshinertia - inertia matrix for the dynamic behaviour of the geometrypublic java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.SavablegetClassTag in class com.jme.scene.Spatial
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablewrite in class PhysicsCollisionGeometryjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||