Contents

init(position:normal:radius:)

Creates a curved portal plane (cylinder) with position, normal, and curvature.

Declaration

init(position: SIMD3<Float>, normal: SIMD3<Float>, radius: Float)

Parameters

  • position:

    The center position of the plane in portal-local space

  • normal:

    The axis direction along which the cylinder extends (for curved planes)

  • radius:

    The cylinder’s radius. Zero for flat planes, positive for curved. Defaults to 0 (flat plane).

Discussion

The curved plane represents an infinite cylindrical surface in portal-local space, equivalent to the radius behavior in UICurvatureComponent. The plane’s position and normal define the cylinder’s center axis orientation, while radius defines how much the plane bends.