Skip to content

Lasers pass through walls with set elevations #14

@znebeker

Description

@znebeker

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions