コード例 #1
0
ファイル: physics.py プロジェクト: gsulliva/tortuga
 def init(self,
          parent,
          name,
          scene,
          shape_type,
          shape_props,
          mass,
          center_of_mass=Ogre.Vector3.ZERO,
          inertia=None,
          position=Ogre.Vector3.ZERO,
          orientation=Ogre.Quaternion.IDENTITY):
     """
     @type  scene: ram.sim.scene.Scene
     @param scene: The scene to create the body in
     
     @type  shape_type: str
     @param shape_type: Denotes, the type of shape, like 'box' or 'sphere'
     
     @type  shape_props: Dict
     @param shape_props: Maps paramater name to value for the shapes 
                         constructor.
     """
     Object.init(self, parent, name)
     Body._create(self, scene, shape_type, shape_props, mass,
                  center_of_mass, inertia, position, orientation)
コード例 #2
0
 def init(self,
          parent,
          name,
          scene,
          mesh,
          material,
          position=Ogre.Vector3.ZERO,
          orientation=Ogre.Quaternion.IDENTITY,
          scale=Ogre.Vector3(1, 1, 1)):
     Object.init(parent, name)
     Visual._create(self, scene, mesh, material, position, orientation,
                    scale)
コード例 #3
0
ファイル: graphics.py プロジェクト: venkatarajasekhar/tortuga
 def init(
     self,
     parent,
     name,
     scene,
     mesh,
     material,
     position=Ogre.Vector3.ZERO,
     orientation=Ogre.Quaternion.IDENTITY,
     scale=Ogre.Vector3(1, 1, 1),
 ):
     Object.init(parent, name)
     Visual._create(self, scene, mesh, material, position, orientation, scale)
コード例 #4
0
ファイル: robot.py プロジェクト: ChrisCarlsen/tortuga
 def init(self, parent, name, scene, direction, min_force, max_force,
          material, position = Ogre.Vector3.ZERO, 
          orientation = Ogre.Quaternion.IDENTITY,
          scale = Ogre.Vector3(1,1,1)):
     
     core.verifyClass(IPart, parent)
     #Visual.init(self, parent, name, scene, mesh, material, position, 
     #            orietnation, scale)
     # Switch me back after the scene node issue is fixed
     Object.init(parent, name)
     
     Thruster._create(self, scene, min_force, max_force, direction, mesh, 
                      material, position, orientation, scale)
コード例 #5
0
ファイル: physics.py プロジェクト: ChrisCarlsen/tortuga
 def init(self, parent, name, scene, shape_type, shape_props, mass,
          center_of_mass = Ogre.Vector3.ZERO, inertia = None,
          position = Ogre.Vector3.ZERO, 
          orientation = Ogre.Quaternion.IDENTITY):
     """
     @type  scene: ram.sim.scene.Scene
     @param scene: The scene to create the body in
     
     @type  shape_type: str
     @param shape_type: Denotes, the type of shape, like 'box' or 'sphere'
     
     @type  shape_props: Dict
     @param shape_props: Maps paramater name to value for the shapes 
                         constructor.
     """  
     Object.init(self, parent, name)
     Body._create(self, scene, shape_type, shape_props, mass, center_of_mass,
                  inertia, position, orientation)
コード例 #6
0
ファイル: robot.py プロジェクト: stormageAC/tortuga
    def init(self,
             parent,
             name,
             scene,
             direction,
             min_force,
             max_force,
             material,
             position=Ogre.Vector3.ZERO,
             orientation=Ogre.Quaternion.IDENTITY,
             scale=Ogre.Vector3(1, 1, 1)):

        core.verifyClass(IPart, parent)
        #Visual.init(self, parent, name, scene, mesh, material, position,
        #            orietnation, scale)
        # Switch me back after the scene node issue is fixed
        Object.init(parent, name)

        Thruster._create(self, scene, min_force, max_force, direction, mesh,
                         material, position, orientation, scale)