Simulating a Laser Beam that measures distance before collision

As it says in the title I want to make an object that’d emit a beam and somehow get back the distance the beam traveled before colliding with another object or anything really.
Basically a sort of LIDAR sensor.
Any suggestions and ideas are welcome.

Any reason why Single Line Trace won’t work?

2 Likes

Thank you for the suggestion, I’ll test it out.