示例#1
0
 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)
示例#2
0
    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)
示例#3
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)
示例#4
0
文件: sonar.py 项目: gsulliva/tortuga
    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)