def __init__(self, options): SubSystem.__init__(self, "WorldManager", True, options) self._sceneManager = Engine().getRenderer().getSceneManager( )._getOgreSceneManager() self._simulator = Engine().getPhysics() self._staticObjects = {} self._dynaObjects = {}
def initialize(self): if not SubSystem.initialize(self): return False # Crating ode world self._world = ode.World() self._world.setGravity((0, -9.81, 0)) self._space = ode.Space() self._contactGroup = ode.JointGroup()
def _setConfigDefaults(self): """ Sets default config parameters """ SubSystem._setConfigDefaults(self) if not self._config.has_key("python.psyco"): self._config["python.psyco"] = "enabled" if not self._config.has_key("python.psyco.log"): self._config["python.psyco.log"] = "enabled" if not self._config.has_key("ogre.renderer"): self._config["ogre.renderer"] = "OpenGL" if not self._config.has_key("graphics.fullscreen"): self._config["graphics.fullscreen"] = "false" if not self._config.has_key("graphics.width"): self._config["graphics.width"] = "800" if not self._config.has_key("graphics.height"): self._config["graphics.height"] = "600" if not self._config.has_key("_window.name"): self._config["_window.name"] = "7d7 Engine"
def initialize(self): """ Initialization """ if not SubSystem.initialize(self): return False self.log('Starting up OISInput') if not self._initializeOIS(): return False return True
def initialize(self): if not SubSystem.initialize(self): return False if self._config["python.psyco"].lower() == "enabled": self._activatePsyco() a, b, c, d = ogre.GetOgreVersion() print "Using Ogre %s.%s.%s %s" % (a, b, c, d) a, b, c = ogre.GetPythonOgreVersion() print "Using Python-Ogre %s.%s.%s" % (a, b, c) if not self._setUp(): raise "self._setUP() failed!" return True
def __init__(self,options=None): SubSystem.__init__(self,'OISInput',True,options)
def __init__(self, options=None): SubSystem.__init__(self, 'OgreRenderer', True, options) RendererInterface.__init__(self, options) self._rendererFactory = RendererFactory()
def initialize(self): if not SubSystem.initialize(self): raise ActionMapperException, "Init error" self._readDefinitions()
def __init__(self, options=None): SubSystem.__init__(self, "ActionMapper", True, options) self._actionMap = {} self._eventDispatcher = EventDispatcher(self.log)
def __init__(self, options=None): SubSystem.__init__(self, "ODEPhysics", True, options)