Original Post
hello, how can i rotate the first person view when i press the right or left keys on the keyboard? currently this is the code im using but it doesnt do well after rotating really far left or right: else if ( e.KeyCode == Keys.Left ) this.cameraTarget.X--; else if ( e.KeyCode == Keys.Right ) this.cameraTarget.X++; the code basically changes the camera target of the device's view transform: device.Transform.View = Matrix.LookAtLH( this.cameraLocation , this.cameraTarget , new Vector3(0, 1, 0)); any suggestions would be appreciated... thanks for your time, Zahid [Edited by - zahidayar on May 24, 2006 3:12:31 PM]