bananu7 / rts

MIT License
7 stars 0 forks source link

Attack on building doesn't respect attack distance #60

Closed bananu7 closed 2 months ago

bananu7 commented 1 year ago

It means that a unit currently ordered to attack will stop before their attack range, since the pathing/movement is too lenient when accepting "target reached".

bananu7 commented 2 months ago

Also auto idle attack range is too small

bananu7 commented 2 months ago

There's a couple issues that cause this 1) unit follow distance (0.5) is added to ac component range as an extra tolerance 2) the distance towards buildings is counted as distance to center and not perimeter - for the purposes of attack, it should be perimeter