ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:accel2grav

Table of Contents

accel2grav

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;
functions/accel2grav.txt · Last modified: 2017/04/17 14:54 by korshun