Collisions with lines

See here: https://playground.babylonjs.com/#YZSWTL#9 You need to init due to the onBeforeRenderObservable.

Axis-aligned bounding box / oriented bounding box (see image)

N.B. If the line is for a laser beam, then you can just use a little sphere on the tip of the laser as a collider.