Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from direct.showbase.ShowBase import ShowBase
- class MyApp(ShowBase):
- def _init_(self):
- ShowBase._init_(self)
- # Load the environment model.
- self.environ = self.loader.loadModel("models/environment")
- # Reparent the model to render.
- self.environ.reparentTo(self.render)
- # Apply scale and position transforms on the model.
- self.environ.setScale(0.25, 0.25, 0.25)
- self.environ.setPos(-8, 42, 0)
- app = MyApp()
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement