Class SkeletalDebugger

java.lang.Object
com.ardor3d.extension.animation.skeletal.util.SkeletalDebugger

public class SkeletalDebugger extends Object
Utility useful for drawing Skeletons found in a scene.
  • Field Details

    • BONE_RATIO

      public static double BONE_RATIO
    • JOINT_RATIO

      public static double JOINT_RATIO
    • LABEL_RATIO

      public static double LABEL_RATIO
    • measureSphere

      protected static final BoundingSphere measureSphere
    • jointText

      protected static final BasicText jointText
  • Constructor Details

    • SkeletalDebugger

      public SkeletalDebugger()
  • Method Details

    • drawSkeletons

      public static void drawSkeletons(Spatial scene, Renderer renderer)
      Traverse the given scene and draw the currently posed Skeleton of any SkinnedMesh we encounter.
      Parameters:
      scene - the scene
      renderer - the Renderer to draw with.
    • drawSkeletons

      public static void drawSkeletons(Spatial scene, Renderer renderer, boolean allowSkeletonRedraw, boolean showLabels)
      Traverse the given scene and draw the currently posed Skeleton of any SkinnedMesh we encounter. If showLabels is true, joint names will be drawn over the joints.
      Parameters:
      scene - the scene
      renderer - the Renderer to draw with.
      allowSkeletonRedraw - if true, we will draw the skeleton for every skinnedmesh we encounter, even if two skinnedmeshes are on the same skeleton.
      showLabels - show the names of the joints over them.
    • setJointLabelColor

      public static void setJointLabelColor(ReadOnlyColorRGBA color)
      Set the color of the joint label object used in showing joint names.
      Parameters:
      color - the new color to use for joint labels.
    • setBoneColor

      public static void setBoneColor(ReadOnlyColorRGBA color)
      Set the color of the bone object used in skeleton drawing.
      Parameters:
      color - the new color to use for skeleton bones.
    • setJointColor

      public static void setJointColor(ReadOnlyColorRGBA color)
      Set the color of the joint object used in skeleton drawing.
      Parameters:
      color - the new color to use for skeleton joints.