Thick laser beam implementation suggestion

Folks, could you please recommend how to implement a thick laser beam which moves between points with some fast velocity but not instantly. I was thinking of two possible options:

1) Create a sensor with a rectangular shape. Extend somehow the shape every time step using the beam velocity. I'm not sure if it's a good practice to change a fixture every time step.

2) Use ray casting. Cast several rays in order to simulate thickness of the beam. However since, as far as I know, ray casting happens instantly this doesn't fit me quite well.

What do you think about it?
I would use ray casting. You can make the start and end of the ray move along just as you would make the sensor change shape, but with much less effort to program 🙂
Thanks! It didn't occur to me it was possible to limit the ray length 😉

Original thread: https://box2d.org/forum/viewtopic.php?t=9278