Ticken overlap lines, change no-overlap colour from yellow to green

This commit is contained in:
Matt Low 2020-11-15 12:21:51 +04:00
parent 5dfd84a2f6
commit 726ef4458d

View File

@ -42,13 +42,13 @@ class SeparatingAxisTheorem:
add(*scale(*normal, 1000), *offset))
# shape 1
line(surface, YELLOW if not colliding else RED,
line(surface, GREEN if not colliding else RED,
add(*scale(*normal, min1), *offset),
add(*scale(*normal, max1), *offset), 5)
add(*scale(*normal, max1), *offset), 8)
# shape 2
line(surface, YELLOW if not colliding else RED,
line(surface, GREEN if not colliding else RED,
add(*scale(*normal, min2), *offset),
add(*scale(*normal, max2), *offset), 5)
add(*scale(*normal, max2), *offset), 8)
def render(self, surface):
self.handle_input()