I'm working on a puzzle game based on a light beam thet gets reflected in mirrors. It looks like a white line. My problem is how can i make it reflect in mirrors when it touches them?
This is what i'm trying to achieve:
What im thinking is making an area 2d that detects when it touches a mirror and triggers a function in its script that will once again instanciate the light beam scene. But how will it get the corect rotation? how do i make it stop when it reaches an obsacle?