119 |
### Buoy coordinate system |
### Buoy coordinate system |
120 |
buoy = self.vs.coords.buoyOnCircle2(self.buoyinto, shiftedAnchorCS, |
buoy = self.vs.coords.buoyOnCircle2(self.buoyinto, shiftedAnchorCS, |
121 |
direction, 10) |
direction, 10) |
122 |
self.vs.matcher.add(self.buoyinto, buoy, linkId) |
self.vs.matcher.add(self.buoyinto, buoy, (linkId, direction)) |
123 |
|
|
124 |
#### Buoy size |
#### Buoy size |
125 |
obj = otherNode.getSize(linkId, otherAnchor, size) |
obj = otherNode.getSize(linkId, otherAnchor, size) |
174 |
|
|
175 |
self.mainNode = link[0].createMainNode(link[1], link[2]) |
self.mainNode = link[0].createMainNode(link[1], link[2]) |
176 |
|
|
177 |
|
def followLinkFromManager(self, link, mgr): |
178 |
|
""" |
179 |
|
If the link isn't from this manager, follow the link, |
180 |
|
but don't animate own center to buoy. |
181 |
|
""" |
182 |
|
if mgr == self: return self.followLink(link) |
183 |
|
|
184 |
|
cs = link[3] |
185 |
|
self.animationCS_buoy = [cs, link, self.vs] |
186 |
|
#self.animationCS_main = [self.mainCS, link, self.vs] |
187 |
|
self.mainNode = link[0].createMainNode(link[1], link[2]) |
188 |
|
|
189 |
|
|
190 |
def followLinkByAnchor(self, anchor): |
def followLinkByAnchor(self, anchor): |
191 |
pa("Searching for anchor", anchor) |
pa("Searching for anchor", anchor) |
192 |
for key in self.cs.keys(): |
for key in self.cs.keys(): |