====== accel2grav ====== {{tag>math units}} ''fixed accel2grav(fixed acceleration)'' ===== Description ===== Converts acceleration (mapunits^2 per tic) to ''sv_gravity'' units. 800 sv_gravity units = 1 mapunit^2 per tic This function returns a fixed-point number, not an integer. ===== Examples ===== accel2grav(1.0) -> 800.0; accel2grav(0) -> 0.0; accel2grav(2.0) -> 1600.0;