hey guys,i'm building a game in 3D in which i had a source of laser, multiple mirrors and a cube and lets say that the cube is my target.i'm kinda new to unity and i have checked all other answers related to reflection stuff but they didn't work for me.
![alt text][1]
this is my project and following are my problems in which i want help,
1) i want that i press space bar and laser starts.
2) i want to reflect laser when it hit the blue area on the mirror but when the grey area comes laser should terminate.
3) same goes for other mirrors but i want multiple reflections and when laser hit the cube it should terminate.
here is my code for laser.
![alt text][2]
Kindly please help me i'll be very thankful.
[1]: /storage/temp/86047-image2.png
[2]: /storage/temp/86048-image3.png
↧