erithtotl / wall-height

New fork of original project for continued improvements.
https://github.com/erithtotl/wall-height
GNU General Public License v3.0
6 stars 9 forks source link

include token height in calc #22

Closed msprijatelj closed 2 years ago

msprijatelj commented 2 years ago

Description

This PR adds an module settings option to include a token's height attribute (scaled to the scene) to automatically determine if it can see over a wall or not. The following assumptions are made for this calculation:

  1. The tokens used are 3d "cubes" (read: Their width, height, and depth are all equivalent lengths).
  2. The character is able to move their head to their foot level or their head level in order to see under or over a wall, respectively.
  3. Regardless of in-game height, the character represented by the token has some means of peeking over the top of a wall the same "size" as their token (e.g. hopping to see over a wall). This also applies for characters with a "size" nominally smaller than their token, e.g. Small characters in D&D that still use a token with a height of "1".

Potential room for improvement:

Issue Number

Partially addresses #11, though perhaps not to the specificity of the original poster.