localToWorld
TypeScriptget localToWorld(): SDKHandleSwift declarationvar localToWorld: simd_float4x4The transform from the system's local space to world space. How this matrix is applied depends on the graph's coordinateSpace.
struct · iOS 27.0+ · SDK 27.1
struct AdvanceParamsParameters for advancing a compute graph simulation by one time step.
get localToWorld(): SDKHandleSwift declarationvar localToWorld: simd_float4x4The transform from the system's local space to world space. How this matrix is applied depends on the graph's coordinateSpace.
set localToWorld(value: SDKHandle)Swift declarationvar localToWorld: simd_float4x4The transform from the system's local space to world space. How this matrix is applied depends on the graph's coordinateSpace.
get viewPosition(): (SDKHandle) | nullSwift declarationvar viewPosition: SIMD3<Float>?The position of the viewer in world space. When provided, this value can be used for billboarding or read within the graph for viewer-relative effects.
set viewPosition(value: (SDKHandle) | null)Swift declarationvar viewPosition: SIMD3<Float>?The position of the viewer in world space. When provided, this value can be used for billboarding or read within the graph for viewer-relative effects.
get worldToLocal(): SDKHandleSwift declarationvar worldToLocal: simd_float4x4The transform from world space to the system's local space. How this matrix is applied depends on the graph's coordinateSpace.
set worldToLocal(value: SDKHandle)Swift declarationvar worldToLocal: simd_float4x4The transform from world space to the system's local space. How this matrix is applied depends on the graph's coordinateSpace.
get commandBuffer(): SDKHandleSwift declarationvar commandBuffer: any MTLCommandBufferThe command buffer to encode simulation commands into.
set commandBuffer(value: SDKHandle)Swift declarationvar commandBuffer: any MTLCommandBufferThe command buffer to encode simulation commands into.
get viewDirection(): (SDKHandle) | nullSwift declarationvar viewDirection: SIMD3<Float>?The forward direction of the viewer in world space. When provided, this value can be used for billboarding or read within the graph for viewer-relative effects.
set viewDirection(value: (SDKHandle) | null)Swift declarationvar viewDirection: SIMD3<Float>?The forward direction of the viewer in world space. When provided, this value can be used for billboarding or read within the graph for viewer-relative effects.
get computeEncoder(): SDKHandleSwift declarationvar computeEncoder: any MTLComputeCommandEncoderThe compute command encoder to encode simulation dispatches with.
set computeEncoder(value: SDKHandle)Swift declarationvar computeEncoder: any MTLComputeCommandEncoderThe compute command encoder to encode simulation dispatches with.
get maxSteps(): numberSwift declarationvar maxSteps: IntThe maximum number of fixed-size steps per advance. This value is only used when ``SimulationRate/mode`` is ``SimulationRate/Mode-swift.enum/fixedFrequency`` or ``SimulationRate/Mode-swift.enum/fixedTime``.
set maxSteps(value: number)Swift declarationvar maxSteps: IntThe maximum number of fixed-size steps per advance. This value is only used when ``SimulationRate/mode`` is ``SimulationRate/Mode-swift.enum/fixedFrequency`` or ``SimulationRate/Mode-swift.enum/fixedTime``.
static initDeltaTimeCommandBufferComputeEncoderLocalToWorldWorldToLocalViewPositionViewDirection(deltaTime: number, commandBuffer: SDKHandle, computeEncoder: SDKHandle, localToWorld: SDKHandle, worldToLocal: SDKHandle, viewPosition?: (SDKHandle) | null, viewDirection?: (SDKHandle) | null): ComputeGraphSimulation_AdvanceParamsSwift declarationinit(deltaTime: Float, commandBuffer: any MTLCommandBuffer, computeEncoder: any MTLComputeCommandEncoder, localToWorld: simd_float4x4, worldToLocal: simd_float4x4, viewPosition: SIMD3<Float>? = nil, viewDirection: SIMD3<Float>? = nil)static initDeltaTimeCommandBufferComputeEncoder(deltaTime: number, commandBuffer: SDKHandle, computeEncoder: SDKHandle): ComputeGraphSimulation_AdvanceParamsSwift declarationinit(deltaTime: Float, commandBuffer: any MTLCommandBuffer, computeEncoder: any MTLComputeCommandEncoder)Creates advance parameters with the required Metal objects. - Parameters: - deltaTime: The time interval, in seconds, to advance the simulation. - commandBuffer: The command buffer to encode simulation commands into. - computeEncoder: The compute command encoder to use.
get deltaTime(): numberSwift declarationvar deltaTime: FloatThe time interval, in seconds, to advance the simulation. When ``SimulationRate/mode`` is ``SimulationRate/Mode-swift.enum/fixedFrequency`` or ``SimulationRate/Mode-swift.enum/fixedTime``, the simulation takes between zero and ``maxSteps`` fixed-size steps to consume this interval. Any remaining time is accumulated and carried into the next advance.
set deltaTime(value: number)Swift declarationvar deltaTime: FloatThe time interval, in seconds, to advance the simulation. When ``SimulationRate/mode`` is ``SimulationRate/Mode-swift.enum/fixedFrequency`` or ``SimulationRate/Mode-swift.enum/fixedTime``, the simulation takes between zero and ``maxSteps`` fixed-size steps to consume this interval. Any remaining time is accumulated and carried into the next advance.
No declarations were skipped in this snapshot.