Hi, im trying to make a “laser” reflect against objects. But I don’t know how i can make it to change direction when It’s hitting something. When I try to change the direction of the “laser” It changes it at the Startposition and not at the Hit position.
This is my code so far.
using UnityEngine;
using System.Collections;
With this code it reflects against 1 object with the tag “Mirrors”. No i need to make something it reflects against mutliple objects. It has to be dynamicle so when i remove a “Mirrors” object from the scene It doesn’t bug of give an error.