# Line trace based on reflection (bounce)

**URL:** <https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286>\
**Category:** Rendering\
**Tags:** line-trace, reflection, bounce, unreal-engine, question\
**Created:** [January 18, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286 "2015-01-18T13:52:29Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![gustavorios2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gustavorios2/32/1194641_2.png) [@gustavorios2](https://forums.unrealengine.com/u/gustavorios2)\
**Post date:** [January 30, 2015, 12:17am UTC](https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286/21 "2015-01-30T00:17:41Z")

</div>

that didn’t worked either… Well now at least I know that problem is because I upgraded my project. I’ll just work on other parts of the game and hope that in a future version it will work

---

<div class="post-metadata">

**Author:** ![9robin3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9robin3](https://forums.unrealengine.com/u/9robin3)\
**Post date:** [March 21, 2018, 4:01pm UTC](https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286/22 "2018-03-21T16:01:13Z")

</div>

Hi! I am trying to do something similar but with lasers (reflected using prisms). How can I do this bounce logic x times, depending on the amount of prisms. Say if there is one prism then the beam should reflect once, but if there is a second after the reflected beam, I want it ti be REFLECTED of the normal once again. Can I use custom events and line trace start point as paramater input for this?

Thanks

---

<div class="post-metadata">

**Author:** ![Universal1l](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Universal1l](https://forums.unrealengine.com/u/Universal1l)\
**Post date:** [February 2, 2025, 11:17pm UTC](https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286/23 "2025-02-02T23:17:58Z")

</div>

sorry for posting on a pretty old thread, but if anybody else has been having problems getting this to work, you could also try this solution. with the other version youre technically reflecting the position of the object as well, which can cause weird results, but with this version you get the direction of the vector, then reflect it and add the position :3

 ![image_2025-02-02_230346479](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/5/bb54e01ae13ffd355be07a448efc79348d4a6ea4.png)

[Previous page](https://forums.unrealengine.com/t/line-trace-based-on-reflection-bounce/304286.md?page=1)
