Spring

The Spring constraint causes the rigid body to bounce along one or more axes, or even bounce along the X axis. It is suitable for creating a shock for a tire, a mechanical scale, or even a swinging door.

Move

  1. Apply a prop (in this case, a piece of toast). Transform it to a desired position, size and angle.
  2. Set the prop as Dynamic.
  3. Because the Dynamic rigid body will fall by default, you need to constraint it to its current location.
    In the Modify panel >> Physics tab >> Constraint section, click the Add Constraint button.

    The Add Constraint panel displays.
  4. Drag and drop the Spring constraint template onto the dynamic rigid body.
  5. Transform the constraint for better observation, and for the arrow to point to the direction so that the rigid body is able to perform the spring-moving animation.
  6. Make sure the constraint is selected.
  7. In the Modify >> Constraint section, you may pin the rigid body to its original position by clicking the World button. Please refer to the Setting Connection Relationship section for more information.
  8. In the Limit section, check the box in the Move section and define the bouncing Range and Rest Point for the spring effect.
    • Range (+), (-): The relative distance from the current pivot position.
    • Rest Point: The relative position of the rigid body when the spring effect stops. It is highly recommended that you use a value between the Range (+) and Range (-), otherwise the spring effect will become unexpected when you begin the simulation.
    • Duplicate the toast (Shortcut: Ctrl + drag with Left Mouse Button). The physics settings are also duplicated, including the constraint settings.
    • Play to simulate the spring effect. You will see the toasts are bouncing up and down.

    Setting Spring Property

    In the above example, you may find that the spring effect keeps going, which seems to never decrease and never stop. In the Property section of the same panel, you are able to set the Spring and Damping values to define the strength of the spring effect and how hard the resistance will be to slow down the spring effect.

    In the last example, the Spring is set to 500, which causes the strong bouncing behavior. If you decrease the value to 50, then the spring strength is also weaken and more gentle.

    Spring: 50, Damping: 0.

    If you want the decrease the speed for each back and forth, then you can increase the Damping value to increase the air resistance for the movement.

    Spring: 500, Damping: 95.

    Rotate

    In addition to the Move spring effect, you are able to create a spring effect that rotates by the X, Y and Z axes. The X axis is taken as an example in the following steps.

    1. Apply a board. Set it as Dynamic rigid body.
    2. Because the Dynamic rigid body will fall by default, you need to constraint it to its current location.
      In the Modify panel >> Physics tab >> Constraint section, click the Add Constraint button.

      The Add Constraint panel displays.
    3. Drag and drop the Spring constraint template onto the hinge part of the dynamic rigid body.
    4. Transform the constraint to the hinge of the dynamic rigid body, and make sure the swirl part of the constraint is parallel to the hinge.
    5. Make sure the constraint is selected.
    6. In the Modify >> Constraint section, you may pin the rigid body to its original position by clicking the World button. Please refer to the Setting Connection Relationship section for more information.
    7. In the Rotation section of the Limit section, activate the axis the constraint is about to rotate (in this case, X) and set the Range and Rest Point values to define the bouncing range.
    8. Set the Spring, Constraint Damping and Rigid Body Damping as described above.
    9. Duplicate the board (Shortcut: Ctrl + drag with Right Mouse Button). The physics settings are also duplicated, including the constraint settings.
    10. Prepare a kinematic object to pass through it. Simulate the result.