Duplicating Rigid Bodies with Constraints

Whenever there is hierarchy consisting of rigid bodies, constraints and target rigid body, duplicating it contains three types of situations:

Duplicating Constrained Rigid Body

Given a rigid body already applied with constraint targeting to another physics objects, you are able to duplicate the rigid body with its constraint and the settings of the constraint. It is useful when you want to create a lot of constrained objects with same appearances and are referred to identical target.

Setting the Physics Structure

  1. Apply a new prop. Set it as Dynamic rigid body and then apply a constraint (in this case, a Hinge) to it.

    The card is applied with a Hinge constraint.

  2. Set the parameter values for the physics object and the constraint.
  3. Apply another object, set it as a physics object (in this case, a Kinematic).

    The cylinder part is set as dynamic physics object.

  4. Select the constraint and pick the cylinder as its target (the one with green bounding box is the target).

Duplicating the Constraint and Target

  1. Select the constrained physics object only (the card).
  2. Make sure the gizmo of object transforming tool is turned on (Ctrl + Q).
  3. Duplicate the selected physics object. Please refer to the Duplicating Props section for more information.
  4. Animate the targeted object (the cylinder) to view the physics animation.

Duplicating Constraint and Target

In the previous method for duplicating, the rigid body shall not be transformed after be duplicated because the constraint attached on it can be transformed as well, which can cause the entire animation incorrect.

The constrained physics object with the method described in the previous section.

After the duplication, transforming the copied physics object can cause the constraint offset.

In this section, you are able to duplicate physics object, individually transformed the copies without influencing the ideally set constraint.

Setting the Physics Structure

  1. Apply two props as shown below.
  2. Set the one meant to be still as Kinematic or Static physics object, and the other as Dynamic one.

    The sun is set as Kinematic physics object while the planet is set Dynamic.

  3. Apply a constraint (in this case, a Hinge) to the Kinematic object.
  4. Select the constraint and pick the dynamic rigid body as its target (the one with green bounding box is the target).
  5. Turn on the force of the Hinge constraint to view the animation of the entire physics structure.

    The planet moves around the sun.

Duplicating the Constraint and Target

  1. Select both the constraint and its target (the planet).
  2. Make sure the gizmo of object transforming tool is turned on (Ctrl + Q).
  3. With the Ctrl key pressed, drag the constraint and the target object to duplicate them.
  4. Transform the target physics object (without influencing the constraint).
  5. Optionally adjust the force value or any other parameters of the new-generated constraint and the target object.
  6. Play back to simulate the physics animation.

Duplicating the Entire Structure

After you have constructed an ideal physics structure, you may sometimes need to duplicate it instead of re-build a new one from scratch, then you need to figure out the objects for duplicate to make sure the relationships are not broken for the copied one.

This method is suitable for duplicating limbs for creatures or wheels for vehicles.

Building a Physics Structure

  1. Create a structure, in this case, there are a body, a tire and a ball that will be used as a dummy joint.
  2. Set the body as Static object temporarily. As for the tire and the ball, set them as Dynamic.
  3. Apply a Spring constraint to the dummy ball and a Hinge to the wheel.

    The tire is applied with a Hinge constraint.

    The dummy ball is applied with a Spring constraint.

  4. Select the Hinge constraint and pick the dummy ball as its target.
  5. Activating the force of the Hinge to rotate the tire.
  6. Select the Spring constraint and pick the body as its target.
  7. Play back to view the simulation result.

Duplicating Physics Structure

In stead of building other more sets of almost same structure, you may use duplicating skill to save a lot of time doing so. All you need to do is to adjust some settings for the copies.

  1. Select both the tire and the dummy ball.
  2. With Ctrl key pressed, drag them to another position in the 3D view.

  3. Transform the new set of the structure.
  4. Repeat step 2 and 3 until you are satisfied.

  5. Set the dummy balls in the structure as Dummy so that they will not be rendered for exporting.
  6. Select the body and set its physics state to Dynamic. The truck thus will move in a real vehicle manner.