0ad/binaries/data/mods/public/simulation
Atrik fc3c0d7876 Prevent targeting unreachable turreted entities
Introduce CanEverReachTarget in the Attack component to check whether
a target is geometrically reachable at all, accounting for height
offsets and turreted units inside buildings.

For non-parabolic attacks (e.g. melee), a simple 3D distance check
from the closest approach point is used.

For parabolic attacks (e.g. ranged), the parabolic range formula
is used to determine if the height difference is surmountable
from the closest horizontal distance to the target.

Add GetClosestApproachDistanceToTurretPoint to TurretHolder
to estimate the minimum horizontal distance to a turret point,
using its local offset and the holder's obstruction size.
Passable buildings are not considered obstacles.

Fixes units on the ground trying to attack unreachable units on walls
or towers when the projectile's arc cannot reach the required height.
2026-08-12 22:40:59 +02:00
..
ai Use JS classes for the AI 2026-07-23 15:15:59 +02:00
components Prevent targeting unreachable turreted entities 2026-08-12 22:40:59 +02:00
data Fix catafalque aura typos 2026-08-06 13:30:42 +02:00
helpers Fix renamed entities on TurretPoint 2026-08-12 22:40:59 +02:00
templates Increase Max Gatherers for 'Small' Ruins 2026-07-13 19:29:03 +02:00