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.
this is my project and following are my problems in which i want help,
-
i want that i press space bar and laser starts.
-
i want to reflect laser when it hit the blue area on the mirror but when the grey area comes laser should terminate.
-
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.
Kindly please help me i’ll be very thankful.