System Overview

Here we will explain the structure and keywords of MagicaCloth.
Basically, you don’t need to be familiar with these things, but you need to know some keywords to read future guides.

Components of Magica Cloth

MagicaCloth is made up of the following components.

Name Icon Description
MagicaPhysicsManager Manager that controls the entire system.
Controls how physics operations are updated.
One is required for each scene.
MagicaBoneCloth Bone Cloth.
Controls bones (Transform) to perform Cloth simulation.
Ideal for shaking hair that already contains bones.
The load is light.
MagicaBoneSpring Bone spring.
Performs a spring simulation by controlling the bone (Transform).
Ideal for breast shaking with bones.
The load is very light.
MagicaRenderDeformer Render deformer.
Component for deforming the mesh of the model.
Required when using MeshCloth / MeshSpring.
The load is heavy.
MagicaVirtualDeformer Virtual deformer.
Vertex reduction is performed by combining multiple render deformers, and reconstructed as one virtual mesh.
In MeshCloth / MeshSpring, this virtual deformer is deformed, and the result is reflected in each render deformer to deform the mesh.
Required when using MeshCloth / MeshSpring.
The load is heavy.
MagicaMeshCloth Mesh cloth.
Perform cloth simulation on mesh vertices.
Because it is a vertex unit, fine control that Bone Cloth can not do is possible.
Ideal for controlling skirts.
Works with virtual deformers.
The load is heavy.
MagicaMeshSpring Mesh spring.
Perform spring simulation on mesh vertices.
Ideal for breast shaking of meshes without bones.
Works with virtual deformers.
The load is moderate.
MagicaSphereCollider Sphere collider.
Detects spherical physical collisions and prevents particles from entering.
MagicaCapsuleCollider Capsule collider.
Detects capsule-type physical collisions and prevents particles from entering.
MagicaPlaneCollider Plane collider.
Detects plate-like physical collisions and prevents particles from entering.
plane is treated as a plane at infinity.

 

Magica Cloth physics engine

MagicaCloth’s physics is controlled by its own physics engine, completely separate from Unity’s physics engine.
Therefore it does not interfere with Unity’s physical system at all.

 

Physics manager

MagicaCloth requires one MagicaPhysicsManager component in the scene to work.
PhysicsManager manages the entire cloth team and manages the time of physics calculations.

 

cloth team

The following four components that perform physical control are called “cloth team”.

  • MagicaBoneCloth
  • MagicaBoneSpring
  • MagicaMeshCloth
  • MagicaMeshSpring

In MagicaCloth, physics operations are performed independently for each cloth team.
Also, each cloth team does not interfere with each other.

 

Deformer

The function to deform the mesh is called “deformer”.
MagicaCloth attaches this deformer to the renderer and performs vertex deformation of the mesh.
Deformers are a required component for MeshCloth / MeshSpring.

particle

Each point controlled by the physics engine is called a particle.

 

sample scene

Simple sample scenes for each component are provided.
By looking at the contents of the sample scene, you will be able to understand the general movement of each component.
The sample scene is in the Exsample/Scene folder.

Scene Name Description
BoneClothSample This is a simple sample of bone cloth.
BoneSpringSample A simple sample of a bone spring.
MeshClothSample A simple sample of mesh cloth.
Notice that the mesh cloth is linked to RenderDeformer / VirtualDeformer.
MeshSpringSample A simple sample of a mesh spring.
UnityChanClothSample This is a sample that incorporates BoneCloth / MeshCloth / MeshSpring into Unity-Chan.
BoneCloth is used for hair and ribbon control, MeshCloth for skirt control, and MeshSpring for breast swing control.
Notice that VirtualDeformer works with multiple RenderDeformers.

The Exsample folder can be deleted because it is not necessary to execute MagicaCloth.

 

preset

The parameters that control cloth have many properties, and it is difficult to grasp everything from the beginning.
Therefore, the parameters of the frequently used cloth control (hair, accessories, skirt, etc.) are recorded as presets.
In cloth setup, it is easy to load this preset first and then adjust while watching the movement.
Presets can also be saved independently, allowing users to create and reuse their own presets or distribute their own presets to other users.
Built-in preset files are included in the MagicaCloth/Res/Preset folder.

 

cloth monitor

There is a “cloth monitor” to check the status of each component and the current status of the physical manager.

 

The cloth monitor allows you to display the gizmo status of the cloth team and deformer in the scene view.
This is an essential tool for adjusting your MagicaCloth.
To start, select [Tools/Magica Cloth/Cloth Monitor] from the menu or press the [Open Cloth Monitor] button for each component.

If the gizmo is difficult to see, switch the scene view to wireframe display for easier viewing.

Check version

You can check the version of MagicaCloth from Tools/Magica Cloth/About menu.