implementing a laser range finder

CollisionSphere collides with everything that intersects with its surface or is inside of the sphere. I think it’s what you need.
EDIT: If you use CollisionRay then you need to create as many rays as many objects you have on the scene to check if they are within the given distance. Most likely, this is too many.