Ejemplo n.º 1
0
 def __init__(self):
     self.defaultShowCCD = False
     
     """
     A dictionary with object types.
     Makes it easier to manage what gets removed and when.
     """
     self.mapObjects = {
         "static": [],
         "triggers": [],
         "characters": [],
         "dynamics": [],
         "kinematics": [],
         }
         
     self.mapFile = "./graphics/models/map"
     
     """
     Setting up an ODE World Manager.
     """
     self.worldManager = odeWorldManager()
     """
     I found 60 Hz to be an optimal time step. However, with simple maps
     and more powerful computers this value might become too small,
     occasionally causing the ODE objects to move not fluently.
     Adjust according to needs.
     """
     self.simTimeStep = 1.0/60.0
Ejemplo n.º 2
0
    def __init__(self):
        self.defaultShowCCD = False
        """
        A dictionary with object types.
        Makes it easier to manage what gets removed and when.
        """
        self.mapObjects = {
            "static": [],
            "triggers": [],
            "characters": [],
            "dynamics": [],
            "kinematics": [],
        }

        self.mapFile = "./graphics/models/map"
        """
        Setting up an ODE World Manager.
        """
        self.worldManager = odeWorldManager()
        """
        I found 60 Hz to be an optimal time step. However, with simple maps
        and more powerful computers this value might become too small,
        occasionally causing the ODE objects to move not fluently.
        Adjust according to needs.
        """
        self.simTimeStep = 1.0 / 60.0
Ejemplo n.º 3
0
 def __init__(self):
     self.defaultShowCCD = False
     
     self.mapObjects = {
                        "static" : [],
                        "triggers" : [],
                        "characters" : [],
                        "dynamics" : [],
                        "kinematics" : [],
                        }
     
     #self.mapFile = "./models/terrain/grass2"
     #self.terrainFile = "./models/terrain/snowy"
     self.terrainFile = "./models/terrain/hmt4"
     #self.terrainFile = "./models/terrain/ground2-1"
     self.playerSpawnPointFile = "./graphics/models/box"
     self.alightSpawnPointFile = "./graphics/models/box"
     self.chairSpawnPointFile = "./graphics/models/chair"
     
     self.worldManager = odeWorldManager()
     
     self.simTimeStep = 1.0/60.0