So I want my laser beam to stop when it hits a solid. I've got what I think is the correct code here, but obviously its not. Any ninja coders out there can fix this mess?
Tell me what to do?
Develop games in your browser. Powerful, performant & highly capable.
There's a good example for an instant-hit laser provided by Ashley himself:
That should help you out.