Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def detectCollisions(self,rect1: Rect, rect2: Rect):
- if rect1.bottom >= rect2.top or rect1.top <= rect2.bottom:
- self.vertcol = True
- if rect1.right >= rect2.left or rect1.left <= rect2.right:
- self.sidecol = True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement