Expand description
Player movement and state.
Structs§
Constants§
- EYE_
CROUCH - EYE_
STAND - GRAVITY
- z units / s^2. With
JUMP_VELa jump lasts 0.8 s and peaks 16000 units up, as measured in the original (DOSBox video, E1M1 coffin). - HEIGHT_
CROUCH - HEIGHT_
STAND - JUMP_
VEL - RADIUS
- RUN_
SPEED - STEP
- SWIM_
SPEED - WALK_
SPEED - Top speeds and responsiveness measured from the original (DOSBox video, E1M1 start).
Functions§
- legacy_
fall_ speed - Fall speed scaled to what it would be under the old 0x10000 gravity, so fall damage keeps depending on the same fall heights.
- no_
ceiling 🔒 - Eye height above the feet. Fitted against screenshots of the original’s opening views on six maps (with the renderer’s vertical scale 1.0).