Page MenuHomeWildfire Games

Try to anticipate unit collisions to improve pathing
Needs ReviewPublic

Authored by wraitii on Jun 4 2023, 4:55 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Title ^. I believe we had something like that a long time ago.
Nowadays, if a unit paths towards a non-moving unit, it will first collide, so stop, then path around a turn later. This looks clunky.
By looking ahead, we can avoid the unit entirely and improve behaviour.

It is, however, a little slower.

Test Plan

Check unit behaviour when gathering resources, moving around. In general, this will only affect moving units that run into non-moving units, as otherwise Pushing does the trick.

Event Timeline

wraitii created this revision.Jun 4 2023, 4:55 PM
Vulcan added a comment.Jun 4 2023, 5:05 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7048/display/redirect

Vulcan added a comment.Jun 4 2023, 5:33 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/8718/display/redirect

wraitii published this revision for review.Jun 5 2023, 8:46 AM

I think a lot of players would be very happy with this, even it it is slower.

borg- added a subscriber: borg-.Jun 6 2023, 4:51 PM

I think a lot of players would be very happy with this, even it it is slower.

I'm one of those who would be happy

marder added a subscriber: marder.Jul 20 2023, 8:17 PM

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/macos-differential/7162/display/redirect

Build failure - The Moirai have given mortals hearts that can endure.

Link to build: https://jenkins.wildfiregames.com/job/docker-differential/8833/display/redirect