Quantcast
Channel: Questions in topic: "mirrorreflection"
Viewing all articles
Browse latest Browse all 98

how can i reflect laser(Line Renderer) with the help of multiple mirrors in 3D?

$
0
0
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

Viewing all articles
Browse latest Browse all 98

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>