This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
units [2017/07/09 16:53] – korshun | units [2017/07/09 17:13] (current) – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Standard ZDoom units ====== | ====== Standard ZDoom units ====== | ||
- | * **distance** -- mapunits | + | * **distance** -- mapunits |
- | * **velocity** -- mapunits per tic | + | |
- | * **acceleration** -- mapunits per tic^2 | + | |
* **time** -- tics (or seconds in non-gameplay contexts) | * **time** -- tics (or seconds in non-gameplay contexts) | ||
* **angle** -- turns counterclockwise | * **angle** -- turns counterclockwise | ||
+ | |||
+ | ===== Derived units ===== | ||
+ | * **velocity** -- mapunits per tic | ||
+ | * **acceleration** -- mapunits per tic^2 | ||
+ | * **gravity** -- as acceleration | ||
Gravity is defined by free fall acceleration, | Gravity is defined by free fall acceleration, | ||
Line 12: | Line 15: | ||
These units should be converted to standard units before performing any operations with them. | These units should be converted to standard units before performing any operations with them. | ||
+ | ==== Space ==== | ||
+ | * meters, feet, and other nonsense -- Doom doesn' | ||
+ | * sv_gravity units (800:1) -- converted to acceleration by dividing by 800 | ||
+ | * JumpZ units -- see [[functions: | ||
+ | |||
+ | ==== Time ==== | ||
* seconds (35:1) | * seconds (35:1) | ||
- | * octics (8:35) | + | * octics (4.375:1) |
+ | |||
+ | ==== Angles ==== | ||
* degrees (360:1) | * degrees (360:1) | ||
* radians (tau:1) | * radians (tau:1) | ||
- | * byte angles(256: | + | * byte angles (256:1) |
- | | + | |
+ | |||
+ | |