add draw trigger of traffic lights

This commit is contained in:
Manish 2019-03-29 19:35:04 +01:00 committed by nsubiron
parent ca6bcafa72
commit 222898e995
1 changed files with 2 additions and 0 deletions

View File

@ -979,6 +979,8 @@ class ModuleWorld(object):
if self.hero_actor is not None:
corners = Util.get_bounding_box(tl)
corners = [world_to_pixel(p) for p in corners]
if self.show_triggers:
pygame.draw.lines(surface, COLOR_CHAMELEON_0, True, corners, 2)
tl_t = tl.get_transform()
transformed_tv = tl_t.transform(tl.trigger_volume.location)