Instance Method

convertTransform:fromNode:

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

Declaration

- (SCNMatrix4)convertTransform:(SCNMatrix4)transform fromNode:(SCNNode *)node;

Parameters

transform

A transform relative to 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 transform relative to the node’s coordinate space.

See Also

Converting Between Coordinate Spaces (SceneKit Types)

- convertPosition:fromNode:

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

- convertPosition:toNode:

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

- convertTransform:toNode:

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

- convertVector:fromNode:

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

- convertVector:toNode:

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