Пример #1
0
 def __init__(self, options):
     SubSystem.__init__(self, "WorldManager", True, options)
     self._sceneManager = Engine().getRenderer().getSceneManager(
     )._getOgreSceneManager()
     self._simulator = Engine().getPhysics()
     self._staticObjects = {}
     self._dynaObjects = {}
Пример #2
0
 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()
Пример #3
0
 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"
Пример #4
0
 def initialize(self):
     """ Initialization """
     
     if not SubSystem.initialize(self):
         return False
     self.log('Starting up OISInput')
     
     if not self._initializeOIS():
         return False
     
     return True
Пример #5
0
 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
Пример #6
0
 def __init__(self,options=None):
     SubSystem.__init__(self,'OISInput',True,options)
Пример #7
0
 def __init__(self, options=None):
     SubSystem.__init__(self, 'OgreRenderer', True, options)
     RendererInterface.__init__(self, options)
     self._rendererFactory = RendererFactory()
Пример #8
0
 def initialize(self):
     if not SubSystem.initialize(self):
         raise ActionMapperException, "Init error"
     self._readDefinitions()
Пример #9
0
 def __init__(self, options=None):
     SubSystem.__init__(self, "ActionMapper", True, options)
     self._actionMap = {}
     self._eventDispatcher = EventDispatcher(self.log)
Пример #10
0
 def __init__(self, options=None):
     SubSystem.__init__(self, "ODEPhysics", True, options)