Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def isCollision(t1,t2):
- distance = math.sqrt(math.pow(t1.xcor()-t2.xcor(),2) + math.pow(t1.ycor())-t2.ycor(),2)
- if distance < 15:
- return True
- else:
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement