Contents

ClothGrabComponent

A component that grabs and drags particles of cloth bodies using either a ray or a volume, as determined by the mode property.

Declaration

struct ClothGrabComponent

Overview

When isGrabbing is first set to true, a selection is made using the ray/volume. While isGrabbing remains true, the selected particles will be dragged to the position determined by the ray/volume. When isGrabbing is set to false, any selected particles are released and will once again be controlled by the simulation.

To smoothen the motion of particles dragged using a volume, falloff can be set to .enabled. This causes the strength of the particle dragging to fall off based on the distance from the volume surface.

Topics

Creating a grab component

Configuring the falloff

Checking the grab state

Instance Properties

See Also

Simulation and bodies