body(at:)
Searches for the first physics body that contains a point.
Declaration
func body(at point: CGPoint) -> SKPhysicsBody?Parameters
- point:
A point in scene coordinates.
Mentioned in
Return Value
The first physics body discovered that contains the point. If no body contains the point, this method returns nil.