Check correct distance
authorNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 12:38:29 +0000 (14:38 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 10 Sep 2016 12:38:29 +0000 (14:38 +0200)
tabakrolletjie/rays.py

index 11bfd33fd259e42fc397bbe0e63b3862860150e1..8a79c34c57b4c3ff89a7d31681c1c5ec0915f385 100644 (file)
@@ -130,7 +130,7 @@ class RayPolyManager(object):
         self._min_radius = value or 0.0
 
     def reaches(self, position):
-        distance = self.position.get_distance(self.position)
+        distance = self.position.get_distance(position)
         return (self._min_radius <= distance <= self._max_radius)
 
     def _set_radius_limits(self, radius_limits):