def set_cursor(self, image, hot_spot): hx, hy = Vector.from_anything(hot_spot) cursor = pyglet.window.ImageMouseCursor(image, hx, hy) self.window.set_mouse_cursor(cursor)
def xyw_from_xyp(self, xyp): return self.origin + self.heading * Vector.from_anything(xyp)