Defining Manipulable Collections of Objects Using the XR Grab Behavior

You can define collections of objects that you want to be manipulable using the XR Grab behavior and its Manipulation Targets parameter when playing your experience.

Using the Manipulation Targets parameter, you can determine with precision the objects that are manipulable when playing the experience and filter out the objects that you do not want to be manipulable.

This is particularly useful in complex assemblies where you want to manipulate only specific individual components that are otherwise hard to dissociate from the global assembly in XR. For example, you want to manipulate only the rim of a car wheel and not the whole wheel itself.


Before you begin:
  1. Optional: Create and develop a scenario for your experience.

    For more information, see Creating Scenarios.

  2. Create an XR interaction area and an XR controller.

    For more information, see Creating an XR Environment and Creating XR Actors.

  3. Add the XR Grab behavior to your XR controller.
  4. Add the XR Ray behavior to your XR controller or hand actors.
    Note: The controller and hand models do not appear on the web.
  5. Create a collection.

    For more information, see Creating Collections.

  6. Add to the created collection the experience objects that you want to be manipulable using the XR Grab behavior.

    For more information, see Managing Objects in Collections.

  7. Open the Properties panel of the XR controller.

    For more information, see Properties Panel.

See Also
About XR Actors
About the Experience Controls for XR Controllers
XR Grab Properties
XR Interaction Area Properties

Context:

The Manipulation Targets parameter is available on the desktop app, on the web, and in the Passthrough mode.

Important: To ensure the correct manipulation of objects using a controller and the XR Grab behavior in 3DLive, do the following:
  • Open the Preferences, and under Settings > Apps > 3DLive, turn on the Hand Structure and Movement option.
  • Ensure that at least one of your actors has a basic behavior or attached script so that 3DLive does not fall into Discovery mode.

  1. From the Properties panel of the XR controller, select the XR Grab behavior to configure its properties.
  2. Expand Parameters, and from the Manipulation Targets list, select the collection containing the objects that you want to be manipulable.

    Tip: Click the Object Selector , and then select a collection directly in the Project panel tree. This is useful when your experience contains multiple collections with complex names.

  3. Play your experience, and try manipulating some objects using the XR controller with its XR Grab behavior.

Result:

You can manipulate only the objects that are part of the selected collection in the Manipulation Targets parameter. This ensures that you restrict the manipulation of objects in XR to predetermined objects only.

Note: When you create a collection of objects, only the types of objects that are primarily clickable are effectively manipulable using the XR Grab behavior. If an object is not primarily clickable, you cannot manipulate this object, even if it is part of a defined collection of objects.

When you do not select any collection in the Manipulation Targets parameter, all the experience objects remain manipulable (if their object typology enables it).

What's Next

Using JavaScript APIs, you can dynamically change the collection defined for the Manipulation Targets parameter while playing your experience. You can also establish dynamic collection changes at the press of any defined button of the XR controller.

Note: If you change the collection dynamically through JavaScript APIs, the actor that you are actively grabbing remains in your grasp until you release the XR controller button.

For more information, see the JavaScript API Guide of Creative Experience.