Esempio n. 1
0
 def debug_sphere_out(self,
                      p: Union[Unit, Point2, Point3],
                      r: Union[int, float],
                      color=None):
     """ Draws a sphere at point p with radius r. """
     self._debug_spheres.append(
         debug_pb.DebugSphere(p=self.to_debug_point(p),
                              r=r,
                              color=self.to_debug_color(color)))
Esempio n. 2
0
 def debug_sphere_out(self,
                      p: Union[Unit, Point2, Point3],
                      r: Union[int, float],
                      color=None):
     """ Draws a sphere at point p with radius r. Don't forget to add 'await self._client.send_debug'. """
     self._debug_spheres.append(
         debug_pb.DebugSphere(p=self.to_debug_point(p),
                              r=r,
                              color=self.to_debug_color(color)))
Esempio n. 3
0
 def to_proto(self):
     return debug_pb.DebugSphere(p=self.to_debug_point(self._start_point),
                                 r=self._radius,
                                 color=self.to_debug_color(self._color))