moo-man / WrathAndGlory-FoundryVTT

The official system implementation for Warhammer 40,000 Roleplay: Wrath & Glory by Cubicle 7
GNU General Public License v3.0
13 stars 16 forks source link

Have token heights factor in to range calculations. #244

Open titaniumdragoonneo opened 7 months ago

titaniumdragoonneo commented 7 months ago

As simple as it sounds! Currently, the W&G Foundry system only logs horizontal distance when determining range for attacks, and I'd like to see vertical distance accounted for too. Extremely useful since W&G innately supports vertical combat, and with vehicles and the large distances they travel and attack from, the verticality between them and their target can greatly impact range determination.

Using the Pythagorean theorem:

RANGE = SQRT( (horizontal distance)^2 + (attacker height - defender height)^2) )