Moving Products under Constraints

After creating the product and defining its constraints in Assembly Design, you can prepare and play the experience in Creative Experience to see how the product moves only along the degrees of freedom allowed by the constraint network. You can then publish this experience as a media that you can play in 3DPlay or Apple Vision Pro (AVP).

Important: Complete all the tasks that this page discusses in the order listed.

This task shows you how to:


Before you begin: Import the product including constraints. It appears in the tree, under the 3D node.
Important: The product must not contain constraints based on surfaces or splines.

Expose Product Constraints

To perform a move under constraints, expose all actors and verify that each part or product in the assembly has its proper actor.

  1. In the 3D node, right-click the assembly and select Expose > Expose Product Constraints.

    A Mechanical Constraints node appears under the assembly Constraints node.
    Tips:
    • Right-click the Mechanical Constraints node, and then select Delete to delete this node.
    • Right-click the Mechanical Constraints node, and then select Rename to rename this node.
  2. Ensure that you have selected Add 'Move under Constraints' behavior, and then click OK.
  3. Next, experiment the move under constraints.

Experiment the Move under Constraints

You can now play the experience.

Before you begin:
  1. From the Compass, press Play to run the experience.

    For more information, see Playing Your Experience.

  2. Drag the components to the required position.
    The components move according to the degrees of freedom defined by the constraint network. Moving one component might cause others to move according to the degrees of freedom allowed by the constraint network.
    Tip: Avoid moving the products too quickly, because this might cause the kinematics to break. If this occurs, run the experience again to resolve the issue.
  3. Optional: To temporarily fix a product for precise manipulation, double-click it using the left mouse button.

    The product gets released when double-clicked again or when you double-click a different product. You can fix only one product at a time.

  4. Optional: Return to the initial position of the assembly by double-clicking the right mouse button in the 3D area.
  5. Next, publish the experience.

Publish the Experience

You can publish this experience and play it in 3DPlay or Apple Vision Pro (AVP).

Before you begin:
  • Publish the Experience.
  • To use the published dsxm file in AVP, create the appropriate XR environment. Pay attention to the selection of the Grab option that might conflict with the move under constraints. For more information, see Creating an XR Environment.
  1. Publish the experience as explained in Customizing and Publishing Experiences and Publishing Optimized Experiences.
  2. Play the experience.

    Note: In AVP, a double-pinch gesture temporarily fixes a part.

Result: For more information, see About Apple Vision Pro (AVP).