I need to check if a CGPoint is inside a SKSpriteNode.
After a little research, CGPathContainsPoint seems appropriated for my purpose.
if CGPathContainsPoint(my_sprite_path, nil, my_point, false) {
}
But Xcode alerts me: Use of unresolved identifier CGPathContainsPoint
I tried to import :
import UIKit
import CoreGraphics
I'm using Xcode 8.0 beta 6.
Did I miss anything?