enableCollisions(towards:)
Enables one-way collisions towards the selected groups.
Declaration
mutating func enableCollisions(towards groups: ClothCollisionGroupSet)Parameters
- groups:
The collision groups to add to the collider’s mask.
Discussion
This adds the selected groups to the collider’s mask, causing body particles in those groups to be pushed away by this collider.