def load(self, data_object): Body.load(self, data_object) Visual.load(self, data_object) # Link body and node toghether self._body.attachToNode(self._node) buoyantPlaneUp = defaults.gravity.normalisedCopy() * -1; self.set_buoyancy(buoyantPlaneUp) self._body.angularDamping = (10,10,10)
def load(self, data_object): Body.load(self, data_object) Visual.load(self, data_object) # Link body and node toghether self._body.attachToNode(self._node) buoyantPlaneUp = defaults.gravity.normalisedCopy() * -1 self.set_buoyancy(buoyantPlaneUp) self._body.angularDamping = (10, 10, 10)
def load(self, data_object): scene, parent, node = data_object if not node.has_key('Graphical'): # Default mesh and scale info gfxNode = {'mesh' : 'sphere.50cm.mesh', 'scale' : [0.15, 0.15, 0.23], 'material' : 'Simple/Orange' } node['Graphical'] = gfxNode Visual.load(self, (scene, parent, node)) self._pingerID = node.get('ID', 0) self._pingInterval = node.get('pingInterval', 2) self._timeSinceLastPing = -1 * node.get('delay', 0)
def load(self, data_object): scene, parent, node = data_object if not node.has_key('Graphical'): # Default mesh and scale info gfxNode = { 'mesh': 'sphere.50cm.mesh', 'scale': [0.15, 0.15, 0.23], 'material': 'Simple/Orange' } node['Graphical'] = gfxNode Visual.load(self, (scene, parent, node)) self._pingerID = node.get('ID', 0) self._pingInterval = node.get('pingInterval', 2) self._timeSinceLastPing = -1 * node.get('delay', 0)