init(shape:filter:)
Creates a trigger volume with the given shape and collision filter.
Declaration
@MainActor @preconcurrency convenience init(shape: ShapeResource, filter: CollisionFilter = .sensor)Parameters
- shape:
The shape of the trigger volume.
- filter:
A collision filter that lets you differentiate among collision groups.