This asset has been made FREE on my website with sign up, please visit to receive this and all my other assets for free.
https://www.darklabgames.com/freestuff
This method of Reflecting Lasers utilizes a beam/wall object duality.
Summary of Mechanics: The Beams are created and are extended until they reach a wall object. They then detect which wall is the closest to the end point, a script is run to check the angle of the beam relative to its position to the wall, and the next beam is angled to the appropriate position.
Features:
Beam/Wall Duality notes (please read): The beams have a specific relationship to the wall structures. The Walls should be objects which retain collision boxes that are perfect squares, and 0 degree rotation. The size of the wall objects can change.
End User Licence Agreement (EULA).