• Content Count

  • Joined

  • Last visited

  1. Hi everyone. I am new to Pixi.js and I took a project about optics simulation. I was planning to use Pixi.js to implement a effect like the pic below.When the angle of the flashlight changes, the lazer sweeps over the canvas and sometimes reflected by a mirror or optical lens. But I found a trouble that I can't tell where the ray will interact with other items, thus make it hard to draw a line without a certain end.😢 So I was hoping someone could tell how can I draw a ray with just one start and a certain angle, or maybe there is any easier way to impliement it. Much thanks for any answers.