init(shapes:filter:)
Creates a trigger volume with the given composite shape and collision filter.
Declaration
@MainActor @preconcurrency init(shapes: [ShapeResource], filter: CollisionFilter = .sensor)Parameters
- shapes:
A collection of shapes which taken together define the composite shape of the trigger volume.
- filter:
A collision filter that lets you differentiate among collision groups.