add draw trigger of traffic lights
This commit is contained in:
parent
ca6bcafa72
commit
222898e995
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue