I am beginner in Panda3D module, so I am playing around. I want to move the camera forward on the press of "w". So I did this in the init class.
self.accept('w', self.forward)
Now I am clueless about what I should write in the forward
function.
You can use vectors to set it directly using camera position (dt = delta time)
base.camera.setPos(base.camera.getPos() + Vec3(5*dt, 0, 0))
If your looking for FPS forward in view direction you probably want
The getQuat gets a vector with convenient direction information.