Initializer

init(shapes:filter:)

Creates a trigger volume with the given composite shape and collision filter.

Declaration

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.

See Also

Creating a Trigger Volume

init()

Creates a trigger volume.

init(shape: ShapeResource, filter: CollisionFilter)

Creates a trigger volume with the given shape and collision filter.

func clone(recursive: Bool) -> Self

Duplicates a trigger volume to create a new trigger volume.