How to use the three-freeform-controls.DEFAULT_HANDLE_GROUP_NAME.PICK_PLANE_YZ function in three-freeform-controls

To help you get started, we’ve selected a few three-freeform-controls examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rapyuta-robotics / amphion / src / utils / interactiveMarkerManager.js View on Github external
}
      case INTERACTIVE_MARKER_INTERACTION_MODES.MOVE_AXIS: {
        handles = [
          DEFAULT_HANDLE_GROUP_NAME.XPT,
          DEFAULT_HANDLE_GROUP_NAME.XNT,
        ];

        if (color !== undefined) {
          controlsManager.translationXP.setColor(color);
          controlsManager.translationXN.setColor(color);
        }

        break;
      }
      case INTERACTIVE_MARKER_INTERACTION_MODES.MOVE_PLANE: {
        handles = [DEFAULT_HANDLE_GROUP_NAME.PICK_PLANE_YZ];

        if (color !== undefined) {
          controlsManager.pickPlaneYZ.setColor(color);
        }

        break;
      }
      case INTERACTIVE_MARKER_INTERACTION_MODES.ROTATE_AXIS: {
        handles = [DEFAULT_HANDLE_GROUP_NAME.XR];

        if (color !== undefined) {
          controlsManager.rotationX.setColor(color);
        }

        break;
      }