This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Setting Up the Simulated Object Anim Graph Node

After you set up the simulated object, create an anim graph to view the simulation. This lets you preview how the tassel moves in relation to the actor’s primary motion.

To set up an anim graph node for the simulated object

  1. In the Anim Graph panel, click the + icon to create an anim graph.

  2. Right-click the graph and choose Create Node, Sources, Blend Tree.

    Create a blend tree node for your anim graph for the simulated object.

  3. Double-click the BlendTree0 node, right-click the anim graph grid, and choose Create Node, Physics, Simulated Object.

    Create a simulated object node in the BlendTree0 node.

  4. Connect the Pose output of the SimulatedObject0 node to the Input Pose of the FinalNode0 node.

  5. Right-click the anim graph and choose Create Node, Sources, Motion.

  6. Connect the Output Pose of the Motion0 node to the Pose input of the Simulated Object0 node.

    Your graph should look like the following.

    Create an anim graph for the simulated object.

  7. Select the Motion0 node and in the Attributes panel, click the + icon to add a motion to the node.

  8. In the Motion Selection Window, select a motion, such as the run, and click OK.

  9. Save the anim graph and enter a name, such as simulatedobjects.animgraph.

  10. Select the SimulatedObject0 node and in the Attributes panel, click Select simulated objects.

    Select a simulated object for the anim graph.

  11. In the dialog box, select the simulated object.

    Select the simulated object that you created.

  12. Save the anim graph.

    In the Anim Graph panel, click the play icon to run the anim graph. The colliders that you set up for each joint don’t collide with other colliders and the tassel goes through the arm and chest of the actor.

    In the next procedure, you create another collider attached to the actor’s skeleton. This prevents the tassel from moving into the actor’s body.