caewok / fvtt-token-visibility

Advanced token visibility rules for Foundry VTT
MIT License
4 stars 8 forks source link

Detecting where a corner should not block still needs work #77

Open caewok opened 9 months ago

caewok commented 9 months ago

Here, the Ogre should have line of sight but its corner is getting blocked or never tested:

Screenshot 2024-01-23 at 10 53 23 AM
Zamrod commented 9 months ago

You said in the other issue that you would expect the Ogre not to see around the corner. I WOULD expect him to see around the corner. In a couple of diagrams it is clear that lines that run directly along a wall are still valid lines according to 5e rules.

image image

As you can see, if a line goes directly along a wall without attempting to go through it, it is valid for line of sight. Both as a target and as a point of origin.

This means that in the original picture you posted in this issue neither the Ogre nor the medium sized creature would have any cover and the Ogre should have greatly expanded line of sight. The medium sized token should be fully visible.

Zamrod commented 9 months ago

That means that the area shaded green in this picture should all be valid line of sight and should be fully visible, even though it isn’t normally in Foundry:

image