BaseCloth

Overview

A common class for cloth components.
BaseCloth is the base class for BoneCloth / BoneSpring / MeshCloth / MeshSpring.

 


public void ResetCloth()

Resets the cloth simulation particle position.

 


public void SetTimeScale(float timeScale)

Set the time scale.
Slow playback is possible for each component individually.

timeScale Time scale.
Specify from 0.0 (0%) to 1.0 (100%).

 


public float GetTimeScale()

Get the time scale.

 


public void AddForce(Vector3 force, PhysicsManagerTeamData.ForceMode mode)

Apply external force.

force External force vector
mode Speed change mode.
[VelocityAdd]
Add to velocity (affected by mass)
[VelocityChange]
Change velocity (affected by mass)
[VelocityAddWithoutMass]
Add to velocity (ignoring mass)
[VelocityChangeWithoutMass]
Change velocity (ignoring mass)

 


public float BlendWeight

Blending ratio with original posture.
(0.0 = 0%, 1.0 = 100%)