Skip to main content
gamedev.net
🔒 Locked

Mouse rotation?

Started by JnZ Oct 11, 2001 at 3:39 AM 1 replies 200+ views
Original Post
JnZ
JnZ
How to do mouse rotations Quake style (strafe and stuff)? Follow the white rabbit.... Edited by - JnZ on October 11, 2001 5:18:57 AM
WarMachine
WarMachine
Get the difference between last frame''s mouse position and this frame''s mouse position, the bigger the difference, the bigger the angle of rotation should be. Experiment with different degrees for the rotation, until you get the effect you want.

Also, consider limiting the maximum degrees of the rotation, so you can maintain a believable speed of rotation.
"You can get out of prison, but not out of the cemetery"
IStrikerI
IStrikerI
use directinput for mouse rotations. the GetState function writes to the DIMOUSESTATE structure which contains the x and y values how strong you moved the mouse.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.