27 |
self.mainNode = initBuoyviewnodetype.createMainNode( |
self.mainNode = initBuoyviewnodetype.createMainNode( |
28 |
initLinkId, initAnchor, self) |
initLinkId, initAnchor, self) |
29 |
def nadir(self, cs): |
def nadir(self, cs): |
30 |
n = self.vs.coords.nadir(cs, self.nadirCS) |
n = self.vs.coords.nadirUnitSq(cs, self.nadirCS) |
31 |
self.vs.matcher.add(cs, n, "NADIR") |
self.vs.matcher.add(cs, n, "NADIR") |
32 |
return n |
return n |
33 |
def scene(self, vs): |
def scene(self, vs): |
60 |
x+r, 300, |
x+r, 300, |
61 |
0.1) |
0.1) |
62 |
self.vs.matcher.add(buoy, linkId) |
self.vs.matcher.add(buoy, linkId) |
|
buoy = self.nadir(buoy) |
|
63 |
into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 1, 1) |
into = self.vs.orthoBoxCS(buoy, "V", 0, 0, 0, .5, .5, 1, 1) |
64 |
|
into = self.nadir(into) |
65 |
otherNode.renderBuoy(self.vs, into, linkId, otherAnchor) |
otherNode.renderBuoy(self.vs, into, linkId, otherAnchor) |
66 |
|
|
67 |
def key(self, key): |
def key(self, key): |