Skip to content

Draft: feat: wall collision for measure/ability templates

Adds wall collision testing to measure and ability templates.

MeasuredTemplatePF gets two new functions:

  • _checkCollisions() for determining if collision testing should be done, which by default tests for .flags.pf1.walls=true
  • _testCollision() for actually testing a collision.

TODO:

  • Add toggle to actions.
  • Add toggle to template config dialog.
  • There's something to be improved about diagonal walls.
    • May need to adjust the end point by 1 pixel towards the origin or something.

Maybe:

  • Add client-side option to not do collision testing during preview/move.

THIS IS NOT COMPATIBLE WITH FOUNDRY V10.

Demonstration

wall-collision-demo

Edited by M.A.

Merge request reports