61 |
self.vs, self.c, self.r, self.nadir = vs, center, radius, nadir |
self.vs, self.c, self.r, self.nadir = vs, center, radius, nadir |
62 |
self.dir = dir |
self.dir = dir |
63 |
self.ind = 0 |
self.ind = 0 |
64 |
|
self.angles = [0.2 * 2*math.pi, 0.4 * 2*math.pi] |
65 |
def addBuoy(self, anchorX, anchorY, importance, key, buoy, w, h): |
def addBuoy(self, anchorX, anchorY, importance, key, buoy, w, h): |
66 |
size = importance |
size = importance |
67 |
|
|
68 |
# 1. find the buoy point |
# 1. find the buoy point |
69 |
|
|
70 |
angle = 2.6*math.pi/2 + self.ind / 5 |
angle = self.angles[self.ind] |
71 |
angle *= self.dir |
angle *= self.dir |
72 |
self.ind += 1 |
self.ind += 1 |
73 |
|
|