Package com.jme3.scene.debug.custom
Class ArmatureDebugger
java.lang.Object
com.jme3.scene.Spatial
com.jme3.scene.Node
com.jme3.scene.debug.custom.ArmatureDebugger
- All Implemented Interfaces:
- HasLocalTransform,- CloneableSmartAsset,- Collidable,- Savable,- JmeCloneable,- Cloneable
The class that creates a mesh to display how bones behave. If it is supplied
 with the bones' lengths it will show exactly how the bones look like on the
 scene. If not then only connections between each bone heads will be shown.
- 
Nested Class SummaryNested classes/interfaces inherited from class com.jme3.scene.SpatialSpatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
- 
Field SummaryFields inherited from class com.jme3.scene.SpatialbatchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
- 
Constructor SummaryConstructorsConstructorDescriptionArmatureDebugger(String name, Armature armature, List<Joint> deformingJoints) Creates a debugger with no length data.
- 
Method SummaryModifier and TypeMethodDescriptionintcollideWith(Collidable other, CollisionResults results) Check collision with another Collidable.voiddisplayNonDeformingJoint(boolean display) voidinitialize(AssetManager assetManager, Camera camera) protected JointvoidupdateLogicalState(float tpf) updateLogicalStatecalls theupdate()method for all controls attached to this Spatial.Methods inherited from class com.jme3.scene.NodeattachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateModelBound, updateWorldBound, writeMethods inherited from class com.jme3.scene.SpatialaddControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, toString, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
- 
Constructor Details- 
ArmatureDebuggerpublic ArmatureDebugger()
- 
ArmatureDebuggerCreates a debugger with no length data. The wires will be a connection between the bones' heads only. The points will show the bones' heads only and no dotted line of inter bones connection will be visible.- Parameters:
- name- the name of the debugger's node
- armature- the armature that will be shown
- deformingJoints- a list of joints
 
 
- 
- 
Method Details- 
displayNonDeformingJointpublic void displayNonDeformingJoint(boolean display) 
- 
initialize
- 
getArmature
- 
updateLogicalStatepublic void updateLogicalState(float tpf) Description copied from class:SpatialupdateLogicalStatecalls theupdate()method for all controls attached to this Spatial.- Overrides:
- updateLogicalStatein class- Node
- Parameters:
- tpf- Time per frame.
- See Also:
 
- 
collideWithDescription copied from interface:CollidableCheck collision with another Collidable.- Specified by:
- collideWithin interface- Collidable
- Overrides:
- collideWithin class- Node
- Parameters:
- other- The object to check collision against
- results- Will contain the list of- CollisionResults.
- Returns:
- how many collisions were found between this and other
 
- 
select
- 
getBoneShapes- Returns:
- the armature wires
 
- 
getInterJointWires- Returns:
- the dotted line between bones (can be null)
 
 
-