Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from direct.showbase.ShowBase import ShowBase
- from panda3d.core import loadPrcFile
- from direct.actor.Actor import Actor
- from panda3d.core import Vec3
- class Application(ShowBase):
- def __init__(self):
- loadPrcFile("PandaGame.prc")
- ShowBase.__init__(self)
- self.teapot = loader.loadModel("teapot")
- self.teapot.reparentTo(render)
- self.teapot.setPos(-5,0,0)
- pandaActorList= [0]*100000000
- i=0
- x=float(0+5)
- y=float(0-10)
- z=float(0)
- while i<3000:
- self.pandaActor = Actor("panda",{"walk": "panda-walk"})
- pandaActorList[i]=self.pandaActor
- pandaActorList[i].reparentTo(render)
- pandaActorList[i].setPos(Vec3(x,y,z))
- pandaActorList[i].loop("walk")
- i=i+1
- x=float(5*i)
- y=float(-10*i)
- z=float(i)
- self.cam.setPos(0,-100,6)
Add Comment
Please, Sign In to add comment