コード例 #1
0
ファイル: robot.py プロジェクト: ChrisCarlsen/tortuga
 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
ファイル: robot.py プロジェクト: ChrisCarlsen/tortuga
 def init(self, parent, name, scene, shape_type, shape_props, mass, mesh, 
          material, position = Ogre.Vector3.ZERO, 
          orientation = Ogre.Quaternion.IDENTITY,
          scale = Ogre.Vector3(1,1,1)):
     
     Body.init(self, None, name, scene, mass, shape_type, 
                   shape_props, position, orietnation)
     Visual.init(self, None, name, scene, mesh, material, position, 
                 orietnation, scale)
コード例 #3
0
ファイル: robot.py プロジェクト: stormageAC/tortuga
    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)
コード例 #4
0
ファイル: robot.py プロジェクト: stormageAC/tortuga
    def init(self,
             parent,
             name,
             scene,
             shape_type,
             shape_props,
             mass,
             mesh,
             material,
             position=Ogre.Vector3.ZERO,
             orientation=Ogre.Quaternion.IDENTITY,
             scale=Ogre.Vector3(1, 1, 1)):

        Body.init(self, None, name, scene, mass, shape_type, shape_props,
                  position, orietnation)
        Visual.init(self, None, name, scene, mesh, material, position,
                    orietnation, scale)
コード例 #5
0
ファイル: robot.py プロジェクト: ChrisCarlsen/tortuga
 def __init__(self):
     Body.__init__(self)
     Visual.__init__(self)
コード例 #6
0
ファイル: robot.py プロジェクト: stormageAC/tortuga
 def __init__(self):
     Body.__init__(self)
     Visual.__init__(self)