Instance Method

intersectsNode:

Returns a Boolean value that indicates whether this node intersects the specified node.

Declaration

- (BOOL)intersectsNode:(SKNode *)node;

Parameters

node

Another node in the same node tree.

Return Value

YES if the two nodes intersect; otherwise NO.

Discussion

The two nodes are considered to intersect if their frames intersect. The children of both nodes are ignored in this test.