Panda3D has one camera type, I believe yes. But, if you turn off the default mouse navigation (using base.disableMouse() ) you can do whatever to the camera you want.
You can then just move base.camera around as you want it, make it interactive based on arrow keys or mouse, or anything you like. There’s plenty of documentation about this, also on the forums.
Yeah but there’s a problem with that. Almost any camera system uses advanced trigonometry to calculate angles and coordinate-changing. I’m not a pro at these things. I just can’t get my head around it.
panda allows very conventient way of altering positions and rotations.
you can set rotations/positions relative to other nodes, even to the node itself.
so if you want your camrea to rotate 5 degrees just do
base.camera.setH(base.camera , 5 )
will make your camrea rotate by 5 degrees. same with positions.
like pro-rsoft already mentioned you need to disable the default camera.mode first with:
But what if I want the mouse to rotate the camera? doesn’t base.disableMouse() make that impossible?
so to achieve what i want it would be something like:
on mouse moving left: base.camera.setH(base.camera , 5)
on mouse moving right: base.camera.setH(base.camera , -5)
on mouse moving forward: base.camera.setV(base.camera , 5)
on mouse moving back: base.camera.setV(base.camera , -5)
could you hand me one example link? the search thingie on the forum doesn’t work for me as ‘FPS style’, ‘FPS shooter’ ‘first peron shooter’ and things like that haven’t yet found me a snippet or something.