Describes how a deformable collider is bound to the cluster of a soft body.

Constructors

Properties

eps: number

For SoftMeshBindingMode.DirectByPosition: the largest distance between a vertex and the particle it follows.

particles: Uint32Array

For SoftMeshBindingMode.Direct: the particle followed by each vertex of the mesh.

selfContacts: boolean

Whether the mesh collides with itself.

Methods

  • Internal

    Returns RawSoftMeshBindingMode

  • Enables collisions of this mesh with itself.

    Parameters

    • enabled: boolean

    Returns SoftMeshBinding

  • Binds vertex i of the mesh to particles[i], which must belong to the cluster.

    Parameters

    • particles: number[] | Uint32Array

    Returns SoftMeshBinding

  • Binds every vertex to the particle of the cluster closest to it, within eps.

    Parameters

    • eps: number

    Returns SoftMeshBinding

  • Binds every vertex to the cell of the cluster holding it (cage simulation).

    Returns SoftMeshBinding