====== jumpz2height ====== {{tag>units zdoom}} ''fixed jumpz2height(fixed height, fixed gravity)'' ===== Description ===== Converts JumpZ to jump height, assuming specified gravity. [[:units|Gravity is specified as acceleration, not as sv_gravity units.]] Default gravity is ''1.0''. Use [[GetGravityG]] to retrieve current gravity. ===== Conversion formula ===== ''jumpz = sqrt(2 * height * gravity)'' ===== Examples ===== int height = jumpz2height(8.0, 1.0); print(s:"JumpZ of 8 will let you jump ", f:height, s:" mapunits high in normal gravity");