viewPosition
TypeScriptget viewPosition(): (SDKHandle) | nullSwift declarationvar viewPosition: SIMD3<Float>?The position of the observer, in world space.
struct · iOS 27.0+ · SDK 27.1
struct ComputeGraphViewpointComponentA transient component that provides camera viewpoint information to the particle simulation. Attach this component to an entity to supply the simulation with an observer's position and direction. The simulation uses these values for view-dependent effects such as billboard orientation or camera-facing particles. Both properties are optional. When `nil`, the simulation falls back to its default viewpoint behavior.
get viewPosition(): (SDKHandle) | nullSwift declarationvar viewPosition: SIMD3<Float>?The position of the observer, in world space.
set viewPosition(value: (SDKHandle) | null)Swift declarationvar viewPosition: SIMD3<Float>?The position of the observer, in world space.
get viewDirection(): (SDKHandle) | nullSwift declarationvar viewDirection: SIMD3<Float>?The direction the observer is facing, in world space.
set viewDirection(value: (SDKHandle) | null)Swift declarationvar viewDirection: SIMD3<Float>?The direction the observer is facing, in world space.
static init(): ComputeGraphViewpointComponentSwift declarationinit()No declarations were skipped in this snapshot.