oOve / lasers

FoundryVTT module for lasers, or lightbeams that can be colored, or reflected using mirrors.
MIT License
0 stars 1 forks source link

Lasers pass through walls with set elevations #14

Open znebeker opened 2 years ago

znebeker commented 2 years ago

This bug effects any scene using wall-height set to anything besides an infinite wall height, including modules that use wall-height as a dependency (such as levels). On such scenes, the laser's ray will project through the wall, even though the visual effect does not.

This was found using the following environment: Foundy v 9.269 Dnd 5e v 1.6.1 Laser and lightbeams v 1.6.6 Wall-height v 4.2.9

Steps to reproduce the bug:

  1. Enable debug mode for lasers and lightbeams
  2. Create a new scene with wall-height enabled under the scene lighting tab
  3. On the new scene, place a laser and mirror a few squares from each other and angle the mirror to reflect the laser (this should work as expected)
  4. place a normal wall between the laser and mirror. Refresh the laser by either rotating or moving it, then reset its position. The wall should block the laser as expected.
  5. Double click the wall segment. Under the Basic tab, set the wall height to top: 9 Bottom: 0 and click update wall
  6. Set the height of both the laser and mirror tokens 0.
  7. Refresh the laser by rotating or moving it, then resetting its position to face the mirror.
  8. Although the laser's visual effect is blocked by the wall, the ray still penetrates and the mirror reflects the lightbeam. image image
oOve commented 2 years ago

Support for levels or wall height is not a planned feature as of yet. Sorry. With the newly (v10) added features for elevation of tiles, this might be on the table when official foundry supports it.