Mouse Movement: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
mNo edit summary
m (corrected 0°)
Line 1: Line 1:
In general, mouse movement represents the instant displacement of the cursor on the screen (in pixels) : (<math display="inline">dx,dy</math>).
[WIP]


When it comes to Minecraft, mouse movement represents the instant rotation of the camera (in degrees) : (<math display="inline">\Delta x , \Delta y</math>).

Outside Minecraft, mouse movement represents the instant displacement in pixels: (dx,dy).

In-game, mouse movement represents the instant rotation of the camera in degrees : (<math display="inline">\Delta x , \Delta y</math>).


<br />
<br />
Line 31: Line 28:





In reality, s is a float, which means it can take any value (even negative).
Furthermore, s is a float, which means it 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 change the value of mouseSensitivity in the options.txt file (found in the .minecraft folder)
Line 49: Line 47:
!<math display="inline">\delta</math>
!<math display="inline">\delta</math>
|-
|-
| -0.2
| -0.33333
|0°
|0°
|-
|-
Line 76: Line 74:


== Yaw and Pitch ==
== Yaw and Pitch ==
...
... [WIP]

Revision as of 21:57, 19 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 setting that allows the Player to change how fast the camera should turn.

This setting can be changed in the Controls tab of the Options 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 is a float, which means it can take any value (even negative).

You can change 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]