Class SkeletonDebugger

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

public class SkeletonDebugger extends Node
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.
  • Constructor Details

    • SkeletonDebugger

      public SkeletonDebugger()
    • SkeletonDebugger

      public SkeletonDebugger(String name, Skeleton skeleton)
      Creates 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.
      name - the name of the debugger's node
      skeleton - the skeleton that will be shown
    • SkeletonDebugger

      public SkeletonDebugger(String name, Skeleton skeleton, Map<Integer,Float> boneLengths)
      Creates a debugger with bone lengths data. If the data is supplied then the wires will show each full bone (from head to tail), the points will display both heads and tails of the bones and dotted lines between bones will be seen.
      name - the name of the debugger's node
      skeleton - the skeleton that will be shown
      boneLengths - a map between the bone's index and the bone's length
  • Method Details

    • updateLogicalState

      public void updateLogicalState(float tpf)
      Description copied from class: Spatial
      updateLogicalState calls the update() method for all controls attached to this Spatial.
      updateLogicalState in class Node
      tpf - Time per frame.
      See Also:
    • getPoints

      public SkeletonPoints getPoints()
      the skeleton points
    • getWires

      public SkeletonWire getWires()
      the skeleton wires
    • getInterBoneWires

      public SkeletonInterBoneWire getInterBoneWires()
      the dotted line between bones (can be null)
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      Description copied from class: Node
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      cloneFields in interface JmeCloneable
      cloneFields in class Node
      cloner - The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
      original - The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.