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.

Difference between revisions of "Gravity"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(Changed image to more modern version.)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Quality|Superior|07:37, 17 May 2015 (UTC)}}
+
{{Quality|Superior}}
 
{{av}}
 
{{av}}
  
 +
:''"The bigger they are, the harder they fall."''
  
:''"The bigger they are, the harder they fall"''
+
[[File:gravity_icon2.png|right]]'''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. Lighter-than-air gases (such as [[miasma]] and [[steam]]) will ascend z-levels. 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.
'''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:
+
* Liquids such as [[water]] and [[magma]] will realistically flow downward, as well as spread itself. The two liquids even flow at separate speeds, matching the viscosity of them in real life. [[Screw pump]]s can transfer the liquids upward, and can flow through metal bars. Constructions such as [[floodgate]]s and [[hatch|hatches]] can impede their flow.
* 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 engine]]s, which currently launch projectiles in a flat trajectory. When the projectile reaches the limit of its range or hits an obstacle, it stops moving forward completely and falls down vertically, at a fixed speed of 6 steps per z-level, without accelerating.
 
* 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 engine]]s, which currently launch projectiles in a flat trajectory. When the projectile reaches the limit of its range or hits an obstacle, it stops moving forward completely and falls down vertically, at a fixed speed of 6 steps per z-level, without accelerating.
 
* 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 and items accelerate while falling.  Water falls at a semi-random rate, taking between 5 and 20 ticks to fall a single z-level.
Line 19: Line 18:
 
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.<sup>[http://www.bay12forums.com/smf/index.php?topic=110718.0|1]</sup>
 
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.<sup>[http://www.bay12forums.com/smf/index.php?topic=110718.0|1]</sup>
  
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 [[wear|worn]] [[clothing]] is liable to maim or kill anyone below. Refuse dumping may therefore be [[Trap_design#Falling_debris_trap|weaponized]]. Just take care that your own dwarves do not mistakenly pummel one another with falling stones.
+
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 [[wear|worn]] [[clothing]] is liable to maim or kill anyone below. Refuse dumping may therefore be [[Trap_design#Falling_debris_trap|weaponized]] - just take care that your own dwarves do not mistakenly pummel one another with falling stones.
 
{{category|Physics}}
 
{{category|Physics}}
 
[[ru:Gravity]]
 
[[ru:Gravity]]

Latest revision as of 23:29, 30 July 2024

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 icon2.png

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. Lighter-than-air gases (such as miasma and steam) will ascend z-levels. 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.
  • Liquids such as water and magma will realistically flow downward, as well as spread itself. The two liquids even flow at separate speeds, matching the viscosity of them in real life. Screw pumps can transfer the liquids upward, and can flow through metal bars. Constructions such as floodgates and hatches can impede their flow.
  • 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 or hits an obstacle, it stops moving forward completely and falls down vertically, at a fixed speed of 6 steps per z-level, without accelerating.
  • 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. Falling damage below 0.2 tiles/step speed is simulated by being hit by a size 7290 blunt object with 100000 contact area[1].
  • 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 z-levels/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.[2]

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.