Skip to content
marcushutchings edited this page Jan 28, 2024 · 14 revisions

Move Definitions

A Move Definition holds information that determines accessibility of areas of a map for any unit that uses that Move Definition; this information is used for path finding and for unit movement-based collisions. Many unit types typically share a Move Definition. The more Move Definitions you have in a game the more memory and CPU power the engine has to use to maintain the pathing data.

New values for Move Definitions

Some values used for unit movement were defined per-unit-type. However that means the pathing system, which only works on Move Definitions, was unable to correctly determine pathable areas. So, for movement purposes-only, these new values are used instead.

height is defined in Elmos and is used to determine vertical collisions in water. This does not affect projectile collisions, it only affects unit movement. The engine will default this value to the calculated width of the units move step in elmos and for Bots it is assumed to be as tall as it is wide, and half that for other unit types.

Note: minimum height is 1

waterline is defined in positive Elmos and ise used to determine the maximum depth the unit will sink. If the ground goes deeper than this, then the unit will not drop further. By default, bot and tank units are assumed to sink to the bottom of the water; hovercraft default to 0, ships are defaulted to 1, and submarines to double their height.

Note: using negative values get converted to positive numbers.