Add direction property to ray manager.
[tabakrolletjie.git] / tabakrolletjie / lights.py
index 8353c280ed76af9a40998fba750db5c79bba45a8..ed18fdf9cfef629002310652fc0cd609c9969b53 100644 (file)
@@ -291,5 +291,5 @@ class SpotLight(BaseLight):
 
     def tick(self):
         if self.angular_velocity:
-            self.ray_manager.rotate_degrees(self.angular_velocity)
+            self.ray_manager.direction -= self.angular_velocity
             self.ray_manager.update_shapes()