Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. from direct.showbase.ShowBase import ShowBase
  2.  
  3. class MyApp(ShowBase):
  4.  
  5.     def _init_(self):
  6.         ShowBase._init_(self)
  7.        
  8.         # Load the environment model.
  9.         self.environ = self.loader.loadModel("models/environment")
  10.         # Reparent the model to render.
  11.         self.environ.reparentTo(self.render)
  12.         # Apply scale and position transforms on the model.
  13.         self.environ.setScale(0.25, 0.25, 0.25)
  14.         self.environ.setPos(-8, 42, 0)
  15.        
  16.        
  17. app = MyApp()
  18. app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement