Converts a position to the node’s local coordinate space from that of another node.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 4.0+
Framework
- Scene
Kit
Declaration
- (simd _float3)simdConvertPosition:(simd _float3)position fromNode:(SCNNode *)node;
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.