16 |
|
|
17 |
print "LOADING BUOYMANAGER" |
print "LOADING BUOYMANAGER" |
18 |
|
|
19 |
lineconn = GLRen.createLineConnector(.5, .5, .5, .5, 0, 0, 0, 0, 0, 1) |
#lineconn = GLRen.createLineConnector(.5, .5, .5, .5, 0, 0, 0, 0, 0, 1) |
20 |
|
lineconn = GLRen.createSqFilletConnection(30, 1, .125, 6) |
21 |
|
|
22 |
|
|
23 |
class RealBuoyManager(BuoyLinkListener): |
class RealBuoyManager(BuoyLinkListener): |
24 |
"""Manage buoys through the new APIs |
"""Manage buoys through the new APIs |
78 |
anchorUnit = self.vs.unitSqCS(anchorCS, "UN") |
anchorUnit = self.vs.unitSqCS(anchorCS, "UN") |
79 |
anchorCenter = self.vs.translateCS(anchorUnit, "TR55", .5, .5) |
anchorCenter = self.vs.translateCS(anchorUnit, "TR55", .5, .5) |
80 |
x = self.ctrx |
x = self.ctrx |
81 |
r = self.ctry * 1.22 |
r = self.ctry * 1.2 |
82 |
print "Linkreally: ",direction, otherNode |
print "Linkreally: ",direction, otherNode |
83 |
if direction > 0: |
if direction > 0: |
84 |
buoy = self.vs.coords.buoyOnCircle(0, anchorCenter, |
buoy = self.vs.coords.buoyOnCircle(0, anchorCenter, |