Cloth Actor

Cloths are used to simulate fabrics. In order to create a cloth you need:

  1. Create ClothActor.

    Create an empty GameObject and add a ClothActor component to it by clicking Add Component > MAGES > Mesh Deformations > Actors > Cloth Actor in the inspector

    ../../../_images/AddComponentClothActor.PNG
  2. Assign a mesh and a Physics World to the ClothActor.

    In the Mesh Field of the ClothActor component, assign the mesh that will be used to create the cloth. Also, assign a Physics World to the ClothActor component

    ../../../_images/ClothActorInspector.PNG

    Note

    You can edit the kinematic particles using the editing tool, by pressing the ‘Edit Particles’ button in the inspector.

    ../../../_images/edit-particles.PNG

    In the particles that appear on the scene, left click to make them kinematic (red color) and shift + left click to make them dynamic (green color).

  3. Render the cloth.

    To render the cloth, simply add a MeshRenderer to the GameObject and assign a Material to it.