Skip to content

Instantly share code, notes, and snippets.

@alyssarosenzweig
Created June 25, 2013 20:38
Show Gist options
  • Save alyssarosenzweig/5862148 to your computer and use it in GitHub Desktop.
Save alyssarosenzweig/5862148 to your computer and use it in GitHub Desktop.
from direct.showbase.ShowBase import ShowBase
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.box = self.loader.loadModel("models/box")
self.box.setPos(0, -10, 0)
self.box.reparentTo(self.render)
self.camera.lookAt(self.box)
self.camera.setPos(0, -20, 0)
MyApp().run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment