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

public class ArmatureDebugger 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

    • ArmatureDebugger

      public ArmatureDebugger()
    • ArmatureDebugger

      public ArmatureDebugger(String name, Armature armature, List<Joint> deformingJoints)
      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.
      Parameters:
      name - the name of the debugger's node
      armature - the armature that will be shown
      deformingJoints - a list of joints
  • Method Details

    • displayNonDeformingJoint

      public void displayNonDeformingJoint(boolean display)
    • initialize

      public void initialize(AssetManager assetManager, Camera camera)
    • getArmature

      public Armature getArmature()
    • updateLogicalState

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

      public int collideWith(Collidable other, CollisionResults results)
      Description copied from interface: Collidable
      Check collision with another Collidable.
      Specified by:
      collideWith in interface Collidable
      Overrides:
      collideWith in 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

      protected Joint select(Geometry g)
    • getBoneShapes

      public ArmatureNode getBoneShapes()
      Returns:
      the armature wires
    • getInterJointWires

      public ArmatureInterJointsWire getInterJointWires()
      Returns:
      the dotted line between bones (can be null)