I have two sknodes on the screen. What is the best way to calculate the distance (\'as the crow flies\' type of distance, I don\'t need a vector etc)?
I\'ve had a go
Pythagorean theorem:
- (float)getDistanceBetween:(CGPoint)p1 and:(CGPoint)p2 { return sqrt(pow(p2.x-p1.x,2)+pow(p2.y-p1.y,2)); }