OpenParsec / openparsec

GNU General Public License v2.0
52 stars 8 forks source link

Add acceleration to keyboard ship turning #13

Open slime73 opened 11 years ago

slime73 commented 11 years ago

The game currently treats keyboard input as binary when turning a ship - it's either max turnrate or nothing. This means that the game's keyboard turnrate can either be slow-and-accurate or fast-but-inaccurate, but not both.

Adding an acceleration curve to keyboard turn speed based on time since the key was pressed would make the game much more playable on keyboards.

uberlinuxguy commented 10 years ago

I took a quick look at this, it looks like the file inp_user.cpp is where you might want to play with this. The functions User_ShipYaw(), User_ShipPitch() and User_ShipRoll() look like they may be a useful place to start. I'm more or less making a note of this for myself so that I know where to look again but also if someone else wants to look at it they can start there too.

uberlinuxguy commented 9 years ago

Moving to version 1.0 milestone for now.