Mouse Movement: Difference between revisions

From Minecraft Parkour Wiki
Content added Content deleted
mNo edit summary
m (started yaw and pitch)
Line 29: Line 29:




Furthermore, '''s''' isn't bounded by [0,1], and can take any value (even negative).
Furthermore, '''s''' isn't technically 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)
You can manually edit the value of mouseSensitivity in the options.txt file (found in the .minecraft folder)

<br />
Be warned that modifying the options.txt file may or may not be allowed on servers.





== Remarkable values ==
== 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.
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.





Line 44: Line 47:
<br />
<br />
{| class="wikitable"
{| class="wikitable"
!s
!<math display="inline">\delta</math>
!<math display="inline">\delta</math>
!s
|-
|-
|0°
| -0.3333333
| -0.3333333
|0°
|-
|-
|0.3946504
|0.1°
|0.1°
|0.3946504
|-
|-
|0.5
|0.15°
|0.15°
|0.5
|-
|-
|0.6546926
|0.25°
|0.25°
|0.6546926
|-
|-
|0.9115013
|0.5°
|0.5°
|0.9115013
|-
|-
|1°
|1.2350600
|1.2350600
|1°
|-
|-
|5.2452746
|45°
|45°
|5.2452746
|-
|-
|8.5221547
|180°
|180°
|8.5221547
|}
|}<br />

== Yaw and Pitch ==
== Yaw and Pitch ==
Yaw and Pitch are [https://en.wikipedia.org/wiki/Floating-point_arithmetic floats] that keep track of an entity's rotation.

[[Facing and Angles|Facing]] is the restriction of the yaw to [-180, 180]. Note that the pitch is already restricted to [-90,90].


... [WIP]
... [WIP]

Revision as of 11:16, 22 May 2020

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 technically 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)

Be warned that modifying the options.txt file may or may not be allowed on servers.


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 can use the inverse formula:


s
-0.3333333
0.1° 0.3946504
0.15° 0.5
0.25° 0.6546926
0.5° 0.9115013
1.2350600
45° 5.2452746
180° 8.5221547


Yaw and Pitch

Yaw and Pitch are floats that keep track of an entity's rotation.

Facing is the restriction of the yaw to [-180, 180]. Note that the pitch is already restricted to [-90,90].


... [WIP]