Units
| Quantity | Unit |
|---|---|
Positions (get_x, set_position), distances (get_distance_to), creation and attachment offsets | Tenths of a Forge unit. A Forge unit is 10 feet, so a tenth is a foot. |
move_to, a position in the header, zone sizes | Whole Forge units. |
Velocities (set_velocity, add_velocity) | Forge units a second. |
Velocities read (get_velocity_x, _y, _z) | Thousandths of a Forge unit a second, so a slow body's speed isn't lost. |
Speeds (get_speed) | Feet a second. |
| Facings | Whole degrees. Yaw from the world's x axis toward its y axis, 0 to 359; pitch nose up, −90 to 90; roll right side down, −180 to 180. |
| Health, shields, sizes, damage | Percent. |
Fine units
Tenths of a Forge unit and whole degrees are too coarse for a mode that moves bodies itself, such as a jump pack, skiing or its own air control. A source whose header's [logic] table says fine_units = true counts in thousandths instead, everywhere at once:
| Quantity | Usual units | Fine units |
|---|---|---|
Positions, distances, offsets, shape sizes, move_to | Tenths of a Forge unit (move_to whole units) | Thousandths of a Forge unit |
get_velocity_x(), _y(), _z() | Thousandths of a Forge unit a second | The same |
set_velocity | Whole Forge units a second | Thousandths of a Forge unit a second |
get_speed | Feet a second | Thousandths of a Forge unit a second |
Facings (get_yaw and the rest, set_rotation, get_view_yaw, get_view_pitch) and the angles of sin, cos, tan and atan2 | Whole degrees | Thousandths of a degree |
Numbers stay whole: in fine units a Forge unit is 1000, and a second's worth of speed at 60 ticks is a sixtieth of it each tick.
