Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Vertical entity movement

ecx86 edited this page Dec 31, 2015 · 8 revisions

Analysis is based on the decompiled source of the vanilla b1.7.3 client.

Terms

Velocity will refer to the vertical velocity of a player in meters (blocks) per tick. This should be added to the player's position at a specific time during each tick, after certain processes and before others

Processes

Gravity in Air

Gravity in air is -0.08 meters per tick squared. This should be added before air friction is applied.

Air friction

Air friction is calculated each tick by multiplying the player's current vertical motion by 0.98.

Clone this wiki locally