Undo revision 2737455 by 2401:4900:1B2B:406A:48E2:F79B:2B04:4540 (talk)
(Undo revision 2737455 by 2401:4900:1B2B:406A:48E2:F79B:2B04:4540 (talk)) Tags: Undo Mobile edit Advanced mobile edit |
|||
Line 189:
== Movement speed ==
There isn't a simple hard-coded maximum velocity for walking, sprinting, etc. The maximum is a result of a base acceleration countered by "friction" or air resistance. The base acceleration for walking is 0.098, and sprinting is 30% faster than that. Velocity is increased by this acceleration value every tick (1/20th of a second), then the player is moved by the resulting velocity, then the velocity is multiplied by the friction value of the block they are walking on. For most blocks, the friction value is 0.546. As the player walks forward, each tick their velocity goes +0.098, *0.546, +.098, *0.546, +0.098, and so on. The
{|class="wikitable" data-description="Movement speed by method, unassisted"
|