Instance Method

simdConvertTransform:toNode:

Converts a transform from the node’s local coordinate space to that of another node.

Declaration

- (simd_float4x4)simdConvertTransform:(simd_float4x4)transform toNode:(SCNNode *)node;

Parameters

transform

A transform relative to the node’s coordinate space.

node

Another node in the same scene graph as the node, or nil to convert to the scene’s world coordinate space.

Return Value

A transform relative to the local coordinate space defined by the other node.

See Also

Converting Between Coordinate Spaces

- simdConvertPosition:fromNode:

Converts a position to the node’s local coordinate space from that of another node.

- simdConvertPosition:toNode:

Converts a position from the node’s local coordinate space to that of another node.

- simdConvertTransform:fromNode:

Converts a transform to the node’s local coordinate space from that of another node.

- simdConvertVector:fromNode:

Converts a direction vector to the node’s local coordinate space from that of another node.

- simdConvertVector:toNode:

Converts a direction vector from the node’s local coordinate space to that of another node.