init(position:extents:)
Creates a volume with the given center position and extents.
Declaration
init(position: SIMD3<Float> = .zero, extents: SIMD3<Float>)Parameters
- position:
The center position of the volume in portal-local space. Defaults to
.zero. - extents:
The size of the volume (width, height, depth) in portal-local space.