Contents

convertPosition(_:from:)

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

Declaration

func convertPosition(_ position: SCNVector3, from node: SCNNode?) -> SCNVector3

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

Related Documentation

Converting Between Coordinate Spaces (SceneKit Types)