Hello,
After just playing around, testing, and choosing Panda3D, I want to start some learning.
So, I loaded the panda-walk model that comes with Panda3D, and I wanted to camera to ‘look down’ on the panda, just like an RTS for example.
Now, I have this:
from direct.showbase.ShowBase import ShowBase
from direct.actor.Actor import Actor
class MyApp(ShowBase):
def __init__(self):
ShowBase.__init__(self)
self.camera.setPos(0,0,10)
#self.camera.setP()
self.pandaActor = Actor("models/panda-model", {"walk": "models/panda-walk4"})
self.pandaActor.setPos(0,50,0)
self.pandaActor.setScale(0.01,0.01,0.01)
self.pandaActor.reparentTo(self.render)
self.pandaActor.loop("walk")
app = MyApp()
app.run()
Now, I guess the self.camera.setPos(0,0,10) should put the camera on a 10 units height? But nothing happens, it is just on the same height as the pandaActor. (the pandaActor is indeed 50 units away on the y-axis.)
Thank you in advance.