Use Fragments in a Rigid Body Simulation

 
 
 

In a new Maya scene, set the Time Slider duration to 100 frames and ensure it is set to play back at frame 1.

  1. Create a Polygon Cube to be your wall. Select Create >Polygon Primitives > Cube > .
  2. Set:
    • Width to 5
    • Height to 0.5
    • Depth to 10

    Then click Create.

  3. In the Attribute Editor, with the cube still selected, set the Transform Attributes > Translate values to:
    • -10.00
    • 2.5
    • 0.0

    This positions the wall at the back end of the grid.

  4. Select Edit > Delete by Type > History.
  5. Use the Shatter tool to set fractures for the wall. See Create shatter.
    NoteSolid Shatter is recommended.
  6. Create a polygon plane to act as a floor by selecting Create > Polygon Primitives > Plane > .
  7. Set:
    • Width to 25
    • Height to 25

    and then click Create.

  8. Now, create a cannon ball to fire at your wall. Select Create > Polygon Primitives > Sphere.
  9. In the Attribute Editor, with the sphere selected, set the Transform Attributes > Translate Y- Axis values to 1.0. This sets it on top of the plane.
  10. Select the wall. (To avoid selecting one of its fragments, select Window > Outliner, and expand SolidShatter1 and Shift-select all the shards.
  11. Select Bullet > Create Active Rigid Body> . Set the Collider Shape Type to Hull. (If you choose anything other than a Hull as a shape type, the fragments will intersect and explode when anything touches it.)
  12. Make sure that the Initial Conditions for your Rigid Body wall shape is set to Initially Sleeping or the wall self-destructs the moment you press Play.
  13. Make sure Initial Velocity is set to 0.
  14. Click Apply and Close.
  15. Include the plane in the solve by selecting it and selecting Bullet > Create Passive Rigid Body.
  16. Select the Sphere and select Bullet > Create Active Rigid Body> .
  17. In the Sphere's Collider Properties, set Collider Shape Type to Sphere.
  18. Disable Initially Sleeping and set the Sphere's Create Rigid Body Initial Velocity settings to:
    • -10.0
    • 8.0
    • 0.0
    and click Apply and Close. This velocity setting is used to launch the sphere at the wall.
  19. Click Play to view the simulation.

Fragmenting Notes

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License