From eb36a460f33969b6c8d3dfe1c0df708a726fdcb3 Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 2 Jul 2022 14:42:56 +0200 Subject: [PATCH] Extended TODO --- columbus/observables.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/columbus/observables.py b/columbus/observables.py index fc6130b..a3135d4 100644 --- a/columbus/observables.py +++ b/columbus/observables.py @@ -163,6 +163,10 @@ class RayObservable(Observable): self.env.agent.pos[0]*self.env.width, sy + \ self.env.agent.pos[1]*self.env.height # TODO: How stupid do I want to code? + # This instanciates an Object for every Ray-hit, + # just to get the color for the visual. + # But since this Code will not be executed during training, + # I don't think fixing this is an priority... col = entity_type(self.env).col col = int(col[0]/2), int(col[1]/2), int(col[2]/2) pygame.draw.circle(self.env.screen, col, (rx, ry), 3, width=0)