intersects(_:)
Returns a Boolean value that indicates whether this node intersects the specified node.
Declaration
func intersects(_ node: SKNode) -> BoolParameters
- node:
Another node in the same node tree.
Return Value
Discussion
The two nodes are considered to intersect if their frames intersect. The children of both nodes are ignored in this test.