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
  3. Press Edit Particles in the inspector to edit particles in the Scene view.

    Instructions

    • Left click: make particles kinematic.

    • Shift + left click: make particles non-kinematic.

    • Alt + drag: marquee-select particles and make them kinematic.

    • Shift + Alt + drag: marquee-select particles and make them non-kinematic.

    Particle Ledger

    • Red: kinematic.

    • Green: non-kinematic.

    • Blue: selected.

    Configuration Settings

    • Particle scale: How big particles are, helping with the visualization.

    • Particle count: How many particles show. Restricting the number of particles shown can help with performance when editing large meshes.

    ../../../_images/ledger.png

    Marquee Selection can help you select multiple particles at once. You can hold the Alt key and drag to marquee-select particles and make them kinematic, or hold Shift + Alt and drag to marquee-select particles and make them non-kinematic.

    ../../../_images/kinematic_marqee.gif
  4. Render the cloth.

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