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?) -> SCNMatrix4func convertTransform(_ transform: SCNMatrix4, from node: SCNNode?) -> SCNMatrix4Parameters
- 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
nilto convert from the scene’s world coordinate space.
Return Value
A transform relative to the node’s coordinate space.