Creates a constraint that forces a node to rotate to face a fixed point.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
A point in the node’s parent’s coordinate system.
An offset that is added to the
zvalue after it is calculated.
A new constraint.
Each time when constraints are applied, a new angle is calculated so that a line projected at this angle would point at the target point. This angle is added to the values specified in the
radians property to create a new range. Finally, the node’s
z value is clamped to fit inside this range.