Ticken overlap lines, change no-overlap colour from yellow to green
This commit is contained in:
parent
5dfd84a2f6
commit
726ef4458d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user