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)
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)
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)
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)
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)
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)