コード例 #1
0
 def setupPhysics(self):
   
   TestApplication.setupPhysics(self,False)
   
   # loading egg model
   egg_model = NodePath(ModelPool.loadModel(Filename(self.egg_file_path)))
   egg_model.reparentTo(self.world_node_)       
   
   self.cam.setPos(self.world_node_,6.60001, -68, 14.4)
   
   # printing loaded egg model
   self.printModelTree(egg_model)
コード例 #2
0
 def _readEggFile_(file_path):
   
   # loading egg model
   model_root = ModelPool.loadModel(Filename(file_path))
   return NodePath(model_root) if model_root is not None else None