normal
TypeScriptget normal(): SDKHandleSwift declarationvar normal: SIMD3<Float>The normal of the portal plane, in entity local space.
struct · iOS 18.0+ · SDK 27.1
struct PlaneA representation of a portal as an infinite plane. Enable the corresponding clipping and crossing features by passing this value in ``ClippingMode-swift.enum/plane(_:)`` or ``CrossingMode-swift.enum/plane(_:)``. RealityKit defines the ``position`` and ``normal`` properties in entity local space. The following default values are available: - ``positiveX`` - ``negativeX`` - ``positiveY`` - ``negativeY`` - ``positiveZ`` - ``negativeZ`` See ``PortalComponent`` for example usage.
get normal(): SDKHandleSwift declarationvar normal: SIMD3<Float>The normal of the portal plane, in entity local space.
set normal(value: SDKHandle)Swift declarationvar normal: SIMD3<Float>The normal of the portal plane, in entity local space.
static init(position: SDKHandle, normal: SDKHandle): PortalComponent_PlaneSwift declarationinit(position: SIMD3<Float>, normal: SIMD3<Float>)Creates a portal plane with position and normal.
get position(): SDKHandleSwift declarationvar position: SIMD3<Float>The position of the portal plane, in entity local space.
set position(value: SDKHandle)Swift declarationvar position: SIMD3<Float>The position of the portal plane, in entity local space.
static get negativeX(): PortalComponent_PlaneSwift declarationstatic let negativeX: PortalComponent.PlaneA portal plane sitting at the origin facing the negative x direction.
static get negativeY(): PortalComponent_PlaneSwift declarationstatic let negativeY: PortalComponent.PlaneA portal plane sitting at the origin facing the negative y direction.
static get negativeZ(): PortalComponent_PlaneSwift declarationstatic let negativeZ: PortalComponent.PlaneA portal plane sitting at the origin facing the negative z direction.
static get positiveX(): PortalComponent_PlaneSwift declarationstatic let positiveX: PortalComponent.PlaneA portal plane sitting at the origin facing the positive x direction.
static get positiveY(): PortalComponent_PlaneSwift declarationstatic let positiveY: PortalComponent.PlaneA portal plane sitting at the origin facing the positive y direction.
static get positiveZ(): PortalComponent_PlaneSwift declarationstatic let positiveZ: PortalComponent.PlaneA portal plane sitting at the origin facing the positive z direction.
No declarations were skipped in this snapshot.