Contents

PortalComponent.CrossingMode.volume(_:)

Allows contents within the portal to cross a box-shaped boundary.

Declaration

case volume(PortalComponent.Volume)

Parameters

  • volume:

    A Volume describing the box’s center and extents in portal-local space.

Discussion

Entities inside the portal world that have a PortalCrossingComponent cross the faces of the box. Parts of a crossing entity inside the volume render as portal content, parts outside render in the host scene.

Use this case for room-sized portals and other bounded portal spaces. For portals where the box should enclose the portal surface, enclosingBox(depth:) is a convenient way to configure this case alongside the matching PortalComponent.ClippingMode.volume(_:).