Improve mouse movement in First person game
Posted
by
brainydexter
on Game Development
See other posts from Game Development
or by brainydexter
Published on 2011-02-04T18:52:48Z
Indexed on
2011/02/04
23:35 UTC
Read the original article
Hit count: 405
In my current FPS game, I have the mouse setup in a way, that it always forces the position of the mouse to be centered at the screen. This gets the job done, but also gets very annoying, since the mouse is "fixed" at the center of the screen.
Here is what I am doing:
- get mouse current position
- find offset from center of the screen
- set mouse current position to center of the screen
- apply difference to m_pTransformation (transformation matrix of the player)
Is there a better way to deal with this ?
© Game Development or respective owner