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 Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

comment:2 by odalman, 5 years ago

Cc: odalman added

comment:3 by bb, 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

Last edited 3 years ago by bb (previous) (diff)

comment:4 by bb, 3 years ago

Component: SimulationCore engine
Keywords: parthfinder added

comment:5 by bb, 3 years ago

Keywords: pathfinder added; parthfinder removed
Note: See TracTickets for help on using tickets.