Files
0ad/source/simulation2/components
wraitii 44aef27b78 Adapt unitMotion to edge-edge distance checks.
D981/c219ee54b2 changed IsInXChecks to use edge-to-edge distance instead
of centre-to-edge, which broke UnitMotion's min-range movement, which
assumed distance to the center.

Since units are represented as squares, the diagonal point may be closer
to the target than the "real" clearance by a factor √2, so the delta
between minimum range and maximum range should be at least `(√2 - 1) *
clearance` to be safe in all situations (this is generally not a problem
for regular units which have a clearance of 0.8, but could be one for
catapults or elephants).

Differential Revision: https://code.wildfiregames.com/D1969
This was SVN commit r22422.
2019-07-01 19:50:06 +00:00
..
2018-02-03 14:17:31 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2019-01-13 15:38:41 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2018-02-03 14:17:31 +00:00
2014-06-01 18:24:50 +00:00
2015-02-16 14:38:13 +00:00
2015-02-16 14:38:13 +00:00