Fixed bug

This commit is contained in:
Manish 2019-02-28 10:14:31 +01:00
parent 7d59dd6208
commit 7fe55b8d6c
1 changed files with 2 additions and 2 deletions

View File

@ -765,8 +765,8 @@ class ModuleWorld(object):
tl_t = tl.get_transform()
transformed_tv = tl_t.transform(tl.trigger_volume.location)
d = transformed_tv.distance(self.hero_actor.get_location())
hero_location = self.hero_actor.get_location()
d = hero_location.distance(transformed_tv)
s = Util.length(tl.trigger_volume.extent) + Util.length(self.hero_actor.bounding_box.extent)
if ( d <= s ):
# Highlight traffic light