# A laser that reflects in a moveable mirror

**URL:** <https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701>\
**Category:** Blueprint\
**Tags:** mirror, laser, unreal-engine, question, Blueprint\
**Created:** [October 18, 2016, 7:22pm UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701 "2016-10-18T19:22:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CosmicThor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CosmicThor](https://forums.unrealengine.com/u/CosmicThor)\
**Post date:** [October 18, 2016, 7:22pm UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701/1 "2016-10-18T19:22:06Z")

</div>

Hey  
I have a problem with my blueprint for a reflecting laser.

I wanted to ask for help first of all how to create the beam that changes every tick, so the mirror that it is reflected on can be moved around.

And then the second question is how to make the laser reflect on the mirror object, i have tried a lot of things but i have never been able to get the output direction correct.

I have posted some pictures of my current blueprint and a picture to illustrate the solution i am looking for 🙂

Thx in advance for any help!

[[Album] Visualisation of laser ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/f/6ff7201057c3476b98d0b2636aab862fbb0d745f.jpeg "Visualisation of laser") ](https://imgur.com/a/q9EXu)

[[Album] Blueprint for laser ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/b/9bbebada79c5f3b902d61a212c54c5cb2620fdcc.jpeg "Blueprint for laser") ](https://imgur.com/a/Pzfm6)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [October 18, 2016, 8:51pm UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701/2 "2016-10-18T20:51:51Z")

</div>

I would try something like this:

 ![111449-reflect2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/1/9f1a7a76624c2a893f721f6eef21335ce923df61.png)

 ![111450-reflect3.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/7/ce70761774822fdd38744f5ae8f6183d076f3193.png)

 ![111462-reflect1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/1/d01e71e0af53528f71b3aed20d2dc7695c88aa85.png)

Basically, this runs a line trace on a timer that checks to see if the surface it hit was a physical surface that is set to reflect (for more on physical materials, check here: [Tutorials about Physical Materials in Unreal Engine | Unreal Engine 5.1 Documentation](https://docs.unrealengine.com/latest/INT/Engine/Physics/PhysicalMaterials/HowTo/index.html)). If it does, it runs a series of bounces that continues as long as the end point of the trace runs into another reflection material. You can have this spawn actors such as cable actors that can appear as your laser beam that bounce around away from the player to reflective surfaces.

---

<div class="post-metadata">

**Author:** ![Big\_R-07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Big\_R-07](https://forums.unrealengine.com/u/Big_R-07)\
**Post date:** [September 5, 2018, 5:48pm UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701/3 "2018-09-05T17:48:38Z")

</div>

Would anyone happen to know where I would spawn my particle beam during this so that my beam will follow the line trace?

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [September 5, 2018, 9:42pm UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701/4 "2018-09-05T21:42:54Z")

</div>

you would spawn it at the start location of the trace.

---

<div class="post-metadata">

**Author:** ![Big\_R-07](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Big\_R-07](https://forums.unrealengine.com/u/Big_R-07)\
**Post date:** [September 6, 2018, 1:32am UTC](https://forums.unrealengine.com/t/a-laser-that-reflects-in-a-moveable-mirror/373701/5 "2018-09-06T01:32:13Z")

</div>

Any idea why if I set up the code just like in the pictures it bounces but only against the material itself and not away from the material? Like in this image:

 ![252891-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/0/470431fe573c50f4c0037a80931390551fca3f46.png)

.
