← Return to game
Log in with itch.io to leave a comment.
Very well done!
How did you implement the lasers / mirrors in Unity?
Thanks :)
Actually it's pretty simple : you create raycast forward and add a point to a line renderer when the raycast hit something. If you hit a miror you can use "Vector2.Reflect" to get a new ray to create a point i the line renderer and so on.
I hope it helps !
Sweet! Great job!
← Return to game
Comments
Log in with itch.io to leave a comment.
Very well done!
How did you implement the lasers / mirrors in Unity?
Thanks :)
Actually it's pretty simple : you create raycast forward and add a point to a line renderer when the raycast hit something. If you hit a miror you can use "Vector2.Reflect" to get a new ray to create a point i the line renderer and so on.
I hope it helps !
Sweet! Great job!