Mouse Movement: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
m (corrected 0°)
mNo edit summary
Line 6: Line 6:


== Sensitivity ==
== Sensitivity ==
Sensitivity (s) is a setting that allows the Player to change how fast the camera should turn.
Sensitivity ('''s''') is a parameter that changes how fast the camera should turn.


This setting can be changed in the Controls tab of the Options menu.
This setting can be changed in the Controls menu.


* The default sensitivity is "100%" (<math display="inline">s=0.5</math>)
* The default sensitivity is "100%" (<math display="inline">s=0.5</math>)
Line 29: Line 29:




Furthermore, s is a float, which means it can take any value (even negative).
Furthermore, '''s''' isn't bounded by [0,1], and can take any value (even negative).


You can change the value of mouseSensitivity in the options.txt file (found in the .minecraft folder)
You can manually edit the value of mouseSensitivity in the options.txt file (found in the .minecraft folder)
<br />
<br />



Revision as of 06:58, 20 May 2020

In general, mouse movement represents the instant displacement of the cursor on the screen (in pixels) : ().

When it comes to Minecraft, mouse movement represents the instant rotation of the camera (in degrees) : ().


Sensitivity

Sensitivity (s) is a parameter that changes how fast the camera should turn.

This setting can be changed in the Controls menu.

  • The default sensitivity is "100%" ()
  • The lowest vanilla sensitivity is "0%" ()
  • The highest vanilla sensitivity is "200%" ()


In 1.8, is calculated as:

is obtained in the same way, and is multiplied by -1 if "Invert Mouse" is ON.


With default sensitivity (), one pixel of mouse movement translates into 0.15° of rotation.

This means that the camera moves in increments of 0.15°: to turn 45°, you would need to move your mouse by 300px.


Furthermore, s isn't bounded by [0,1], and can take any value (even negative).

You can manually edit the value of mouseSensitivity in the options.txt file (found in the .minecraft folder)


Remarkable values

Since it's possible to set the sensitivity to any value we want, it might be interesting to adjust the sensitivity to match specific rotation increments.


To get the required sensitivity for the desired increment , you simply need to reverse the previous formula:


s
-0.33333
0.39465 0.1°
0.5 0.15°
0.65469 0.25°
0.91150 0.5°
1.23506
5.24527 45°
8.52215 180°


Yaw and Pitch

... [WIP]