Create Attract to Matching Mesh constraints

Creating an Attract to Matching Mesh constraint

You can create an Attract to Matching Mesh constraint to attract the vertices of an nCloth object to the corresponding vertices of a mesh with matching topology. For example, use this constraint to create a specific end shape for a garment falling off of a character that must land in a specific shape, or orientation in the scene.

To create an Attract to Matching Mesh constraint

  1. Select the nCloth objects you want to constrain.
  2. Select nConstraint > Attract to Matching Mesh > .

    The Create Attract to Matching Mesh Constraint Options Box window appears.

  3. (Optional) Turn on Use Sets to add the nCloth object to a dynamic constraint selection set.
  4. Click Create Constraint or Apply.

    Constraint links between the nCloth object and the target nCloth mesh appear, and the dynamicConstraint node appears in the Attribute Editor.

    The preset properties on the dynamicConstraint node determine the constraint’s type (in this case, an Attract to Matching Mesh constraint) and how it behaves. For example, you can create a Attract to Matching Mesh constraint with the following attribute settings:

    • Spring as the Constraint Method
    • All to First as the Component Relation
    • Component Order as the Connection Method
    • At Start as the Connection Update.

    See dynamicConstraintShape.

  5. (Optional) Adjust the Strength attribute on the dynamicConstraint node.

    The Strength attribute determines how closely your nCloth object resembles your target nCloth mesh.