Opened 7 years ago
Last modified 3 years ago
#4585 new defect
Units stand in a square shape when attacking buildings
Reported by: | temple | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Backlog |
Component: | Core engine | Keywords: | pathfinder |
Cc: | odalman | Patch: |
Description
As described here, when attacking a building units sometimes run closer to it to form a square shape, even though they're within range before that point (they should form a circle around the building).
It might might have something to do with how the building's "radius" compares to the unit's range. In my brief experiments in the editor, archers stood in a circle to shoot a cc but slingers and skirmishers stood in a square. For a barracks, archers and slingers stood in a circle but skirms stood in a square. And for a house, all three stood in a circle. I could very well be wrong, though.
Change History (5)
comment:1 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
comment:2 by , 5 years ago
Cc: | added |
---|
comment:3 by , 3 years ago
I would guess, this is due to the fact how unitMotion handles walking in range. It either treats the target as square or circle (see ShouldTreatTargetAsCircle).
(they should form a circle around the building)
Rather a rounded rectangle
comment:4 by , 3 years ago
Component: | Simulation → Core engine |
---|---|
Keywords: | parthfinder added |
comment:5 by , 3 years ago
Keywords: | pathfinder added; parthfinder removed |
---|
Move tickets to
Simulation
asUI & Simulation
got some sub components.