location(in:)
Returns the current location of the touch in the coordinate system of the given node.
Declaration
func location(in node: SKNode) -> CGPointParameters
- node:
A node that is a descendant of a scene presented in the window that received the touch event.
Return Value
The location of the touch in the node’s coordinate system.