Class SkeletalDebugger
java.lang.Object
com.ardor3d.extension.animation.skeletal.util.SkeletalDebugger
Utility useful for drawing Skeletons found in a scene.
-
Field Summary
Modifier and TypeFieldDescriptionstatic double
static double
protected static final BasicText
static double
protected static final BoundingSphere
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawSkeletons
(Spatial scene, Renderer renderer) Traverse the given scene and draw the currently posed Skeleton of any SkinnedMesh we encounter.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.static void
setBoneColor
(ReadOnlyColorRGBA color) Set the color of the bone object used in skeleton drawing.static void
setJointColor
(ReadOnlyColorRGBA color) Set the color of the joint object used in skeleton drawing.static void
Set the color of the joint label object used in showing joint names.
-
Field Details
-
BONE_RATIO
public static double BONE_RATIO -
JOINT_RATIO
public static double JOINT_RATIO -
LABEL_RATIO
public static double LABEL_RATIO -
measureSphere
-
jointText
-
-
Constructor Details
-
SkeletalDebugger
public SkeletalDebugger()
-
-
Method Details
-
drawSkeletons
Traverse the given scene and draw the currently posed Skeleton of any SkinnedMesh we encounter.- Parameters:
scene
- the scenerenderer
- 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 scenerenderer
- 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
Set the color of the joint label object used in showing joint names.- Parameters:
color
- the new color to use for joint labels.
-
setBoneColor
Set the color of the bone object used in skeleton drawing.- Parameters:
color
- the new color to use for skeleton bones.
-
setJointColor
Set the color of the joint object used in skeleton drawing.- Parameters:
color
- the new color to use for skeleton joints.
-