v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Gravity

From Dwarf Fortress Wiki
Revision as of 11:18, 30 April 2016 by Larix (talk | contribs) (Terminal velocity, objects and creatures behave the same, exception for (some?) siege projectiles.)
Jump to navigation Jump to search
This article is about the current version of DF.
Note that some content may still need to be updated.


"The bigger they are, the harder they fall"


Gravity in Dwarf Fortress shares similarities to the real world but has some key differences. Items, creatures and fluids will descend under gravity, moving to a lower z-level in the right circumstances. While this mimics the real world, the biggest key differences are listed below:

  • In a cave-in, terrain collapses to the lowest point instantly, however items, creatures and buildings fall more slowly (over multiple ticks)
  • Buildings in a cave in will instantly deconstruct before they fall, and the resulting items will then fall separately
  • Items and creatures that are thrown, shot, cut off and sent flying, knocked back or generally expected to travel in a parabolic arc will tend to do so (within the limitations of the game tiles); one notable exception is for siege engines, which currently launch projectiles in a flat trajectory. When the projectile reaches the limit of its range, it stops moving forward completely and falls down vertically, at a fixed speed of 6 steps per z-level, without accelerating (tested with catapult stones in DF 0.42.06).
  • Creatures and items accelerate while falling. Water falls at a semi-random rate, taking between 5 and 20 ticks to fall a single z-level.
  • Creatures that fall into water decelerate, generally suffering less overall damage upon impact with the bottom. Drowning while stunned, however, is still a concern.
  • The density of the material in the landing zone can have a significant effect on the outcome of a fall. Light materials like featherwood reduce the risk of serious injury, while dense materials like platinum increase it.
  • Creatures that are dropped onto a standing creature's head will generally suffer little damage regardless of how many z-levels they fell. The unfortunate creature who broke their fall may suffer significant damage, however.
  • The value of g in df for a falling dwarf is .032075 ± .000015 Z-levels/tick^2 based on drops of 59 z-levels done on v0.34.10. More recent tests on v0.42.0X show this value appears to have stayed constant. The value of g is the same for inanimate objects and may be the same for liquids. The latter needs testing.
  • Falling entities observe the (mostly-hard) speed limit of terminal velocity, 270000 distance units per tick. Since a tile is 50% higher than it is wide, that translates to a maximum free-fall speed of 1.8 zlevels/step. Both creatures and objects are subject to this limitation. It should take 56 steps and 52 z-levels to reach this speed. Presumably, a 200-z fall is no different in effect from an exact 52-z one, since the falling object's or creature's velocity will not increase past this point.

In general, falls of 1-2 z-levels are unlikely to cause significant damage to your dwarves, and goblins have been seen to fall more than four with only light bruising and stunning. Large falls (30+ z-levels) will tend to cause the hapless victim to explode upon impact. The minimum drop with 100% mortality appears to be around 25 z-levels.[1]

On the other hand, falling items and creatures can cause grave injury to any creature they fall upon, even when falling a single z-level.Bug:5945 A falling giant cave spider web can easily break the neck of your master weaver, while worn clothing is liable to maim or kill anyone below. Refuse dumping may therefore be weaponized. Just take care that your own dwarves do not mistakenly pummel one another with falling stones.