Register

Hexagons Are The Bestagons

An Add-on Module for Foundry Virtual Tabletop

Author: 7H3LaughingMan Project Source: Project URL Versions 11+ (Verified 11) Last Updated 9 months, 3 weeks ago

Have you ever noticed that somtimes when your using the ruler, a template, or another module to select a hex that it sometimes is a little off? Like when your mouse goes to far down or to the right of a hex it thinks your on a different hex. Well if you have it can be quite annoying right? Well this module fixes that problem with Foundry VTT.

The simplest explanation of the problem is that Foundry VTT isn't actually checking if your cursor is within a hexagon, but instead checking to see if it's inside a rectangle. This means that parts of the rectangle includes portions of other hexes and is missing portions of the hex it is supposed to represent. To fix this we need to use the power of the Pythagorean Theorem to check if the cursor is in one of those spots and if so correct Foundry VTT by telling it that the cursor is over a different hex.

This is a very simple module, all it's doing is replacing a single function in Foundry VTT. Hopefully this small fix can be included in a future Foundry VTT update.

Categories

Available Versions

  1. Version 1.0.0

    9 months, 3 weeks ago
    Foundry Version 11+ (Verified 11) Manifest URL