Hi everyone! I recently read the tutorial about 1st person mouse look on tutorialsforblender3d.com, which basically rotates the camera up-down around local X, and left-right around global Z.
Now what if the player would be in a vehicle? Or better yet a plane. If the plane is pointing up, then the left-right look completely looses its original functionality. So what’s the proper solution?
Oh c’mon guys, no one?! I mean it’s a pretty basic necessity in a 3d fps these days.
To simplify the solution even further, all it’s needed is for the camera to rotate left-right around the vehicle’s Z axis instead the global’s. Anyone smarter than me?
Didn’t work
Maybe you forgot to switch to camera view.
Fix line 63 in MouseLook.py:
lookLeftRight.setDRot( 0.0, 0.0, leftRight, True) # for local movement
Well I’ll be… Naturally that’s the first thing I’ve tried, but I had all the logic on the camera. Looks like I accidentally solved it while making a simple example scene for the forums LoL Thanks for pointing out my own stupidity Jazz, I would have hardly notice it…
So the idea is to have a second object that does the left-right rotation… Go figure!