Contents

enableCollisions(towards:)

Enables one-way collisions towards the selected groups for all particles in the body.

Declaration

mutating func enableCollisions(towards groups: ClothCollisionGroupSet)

Parameters

  • groups:

    The collision groups to add to the mask of every particle.

Discussion

This adds the selected groups to the mask of all particles, causing particles in those groups to be pushed away by this body in self-collisions. Colliders are never affected by particles, so this only influences body-to-body interactions.

See Also

Managing collisions