/**
  * For internal use only specific render for the ragdoll(if debugging)
  *
  * @param rm
  * @param vp
  */
 public void render(RenderManager rm, ViewPort vp) {
   if (enabled && space != null && space.getDebugManager() != null) {
     if (!debug) {
       attachDebugShape(space.getDebugManager());
     }
     for (Iterator<PhysicsBoneLink> it = boneLinks.values().iterator(); it.hasNext(); ) {
       PhysicsBoneLink physicsBoneLink = it.next();
       Spatial debugShape = physicsBoneLink.rigidBody.debugShape();
       if (debugShape != null) {
         debugShape.setLocalTranslation(
             physicsBoneLink.rigidBody.getMotionState().getWorldLocation());
         debugShape.setLocalRotation(
             physicsBoneLink.rigidBody.getMotionState().getWorldRotationQuat());
         debugShape.updateGeometricState();
         rm.renderScene(debugShape, vp);
       }
     }
   }
 }