Contents

convertTransform(_:from:)

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

Declaration

func convertTransform(_ transform: SCNMatrix4, from node: SCNNode?) -> SCNMatrix4
func convertTransform(_ transform: SCNMatrix4, from node: SCNNode?) -> SCNMatrix4

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

Related Documentation

Converting Between Coordinate Spaces (SceneKit Types)