First-person camera movement

Jul 1, 2010 at 4:17 PM
Hello, first off thank you for your great work! I'm using last source and trying to implement first-person camera. Render mode is passive. Here is my code for camera rotation around position: var cameraRotation = Matrix.CreateRotationX(upDownRot) * Matrix.CreateRotationY(leftRightRot); Vector cameraOriginalTarget = new Vector(0, 0, -1); Vector cameraRotatedTarget = Vector.Transform(cameraOriginalTarget, cameraRotation); Vector cameraFinalTarget = Camera.Position + cameraRotatedTarget; Vector cameraOriginalUpVector = new Vector(0, 1, 0); Vector cameraRotatedUpVector = Vector.Transform(cameraOriginalUpVector, cameraRotation); Camera.Target = cameraFinalTarget; Camera.Up = cameraRotatedUpVector; It looks like i'm rotating camera about axis Z, so objects aren't moving left-right but on circle. Did i miss something?
Coordinator
Jul 2, 2010 at 10:03 AM
Edited Jul 2, 2010 at 10:03 AM

Thanks.

Is there a chance for you to email me your solution? Then I can debug into it.

einar [at] dolittle [dot] com