Page MenuHomeWildfire Games

Improve handling of obstructed paths
ClosedPublic

Authored by wraitii on Jul 18 2019, 7:08 PM.

Details

Reviewers
None
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP22507: Unit Motion - Improve handling of obstructed paths.
Summary

Units right now try going to their next long waypoint using the short-range pathfinder. This works, but it tends to leads to units clumping together when shuttling for example.

By switching to short paths earlier, and by scrapping the long waypoints when doing so, we can make movement more natural until we have unit pushing.

Test Plan

Task 25 units from a mine to a diagonal dropside.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

wraitii created this revision.Jul 18 2019, 7:08 PM

Successful build - Chance fights ever on the side of the prudent.

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

wraitii updated this revision to Diff 8980.Jul 18 2019, 9:54 PM

Some cleanup.

PathGoal doesn't implement DistanceToPointSquared so for now stay like so.

Successful build - Chance fights ever on the side of the prudent.

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

This revision was not accepted when it landed; it landed in state Needs Review.Jul 18 2019, 10:00 PM
This revision was automatically updated to reflect the committed changes.