Hello! I am trying to implement looking on my camera class and was wondering if this is the right way to do it:
SetCursorPos(NXGPU::GPUContext->ViewportWidth / 2, NXGPU::GPUContext->ViewportHeight / 2); oldMouseState = NXInput::GetMouseState();
float xDifference = NXInput::GetMouseState().lX - oldMouseState.lX; float yDifference = NXInput::GetMouseState().lY - oldMouseState.lY; Yaw -= Sensitivity * xDifference * amount; Pitch -= Sensitivity * yDifference * amount;
"amount" = gameTime->TotalTime / 1000.0f;
Also, should my camera have its own projection matrix? Thanks!
Edited by KoldGames, 22 September 2013 - 10:26 PM.