Opened 3 years ago

Closed 3 years ago

#6114 closed defect (fixed)

UnitMotion: Units getting stuck on building corners

Reported by: wraitii Owned by: wraitii
Priority: Must Have Milestone: Alpha 25
Component: Core engine Keywords:
Cc: Patch: unitmotion pathfinder

Description

Change History (1)

comment:1 by wraitii, 3 years ago

Owner: set to wraitii
Resolution: fixed
Status: newclosed

In 25786:

UnitMotion hack to fix units being stuck near corners.

I think there is a small mismatch between CheckMovement & the vertex pathfinder when computing passability because one is ray-based and the other just uses edges. However, it's out of my reach to fix it for now.
This can lead to units being stuck near building edges occasionally. This introduces an un-intrusive recovery strategy (aka a hack) in HandleObstructedMove that should get the units unstuck.

Should fix #6114 (to a sufficient extent anyways)

Differential Revision: https://code.wildfiregames.com/D4162

Note: See TracTickets for help on using tickets.