I am sure this will be helpful for many.
I want to make a laser, almost exactly like the one in the 'laser' version of Ghost Shooter. However the fundamental difference is that I want the laser to keep going until it hits the nearest object, not the mouse. There are currently 2 specific objects, might be more.
Any help? also of note one of the objects exists all over the map in different sizes.
Basically I need to find the distance in a straight line from one object to another at a specific angle.