コード例 #1
0
ファイル: odePhysics.py プロジェクト: almlys/sevendeset
 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()
コード例 #2
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
コード例 #3
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
コード例 #4
0
 def initialize(self):
     if not SubSystem.initialize(self):
         raise ActionMapperException, "Init error"
     self._readDefinitions()