convertTransform(_:to:)
Converts a transform from the node’s local coordinate space to that of another node.
Declaration
func convertTransform(_ transform: SCNMatrix4, to node: SCNNode?) -> SCNMatrix4func convertTransform(_ transform: SCNMatrix4, to node: SCNNode?) -> SCNMatrix4Parameters
- transform:
A transform relative to the node’s coordinate space.
- node:
Another node in the same scene graph as the node, or
nilto convert to the scene’s world coordinate space.
Return Value
A transform relative to the local coordinate space defined by the other node.