# Laser Reflections and Mirrors

**URL:** <https://forum.kirupa.com/t/laser-reflections-and-mirrors/179318>\
**Category:** flash\
**Created:** [February 18, 2006, 8:32pm UTC](https://forum.kirupa.com/t/laser-reflections-and-mirrors/179318 "2006-02-18T20:32:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cr125rider](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cr125rider/32/534_2.png) [@cr125rider](https://forum.kirupa.com/u/cr125rider)\
**Post date:** [February 18, 2006, 8:32pm UTC](https://forum.kirupa.com/t/laser-reflections-and-mirrors/179318/1 "2006-02-18T20:32:21Z")

</div>

I am making one of those little mirror maze games. You press a button, the laser fires, bounces off mirrors and hits a target. I am having problems with the mirrors and the reflections though. I have the laser comming in at a certain direction (in Degrees) and the mirror’s rotation (mirror faces right at 0 deg |- 0 deg). I need help making the laser have the right direction when it reflects, I already have an eqaution for the intersection of the two lined but its just that little reflection thing that is throwing me off.

the “object” is the object that is being tested, in this case a mirror.  
laserDirection is the direction in deg. that the laser is going.

```auto
laserDirection = ((((_root.object._rotation+360)-((laserDirection)+540)))+_root.object._rotation);

```

Thank you,  
-Seth
