Instance Method

simdConvertPosition:fromNode:

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

Declaration

- (simd_float3)simdConvertPosition:(simd_float3)position fromNode:(SCNNode *)node;

Parameters

position

A position in the local coordinate space defined by the other node.

node

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

Return Value

A position in the node’s local coordinate space.

See Also

Converting Between Coordinate Spaces

- 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.

- simdConvertTransform:toNode:

Converts a transform from the node’s local coordinate space to 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.