Hi Community! I try to draw a line which follows the angle of my cursor. It shouldn't stop at my cursor but rather follow its direction until a collision happens. As for now I am able to draw the line on every update which follows perfectly my cursor, but stops then. I had the idea to "fire" a sensor (trigger) along the line to check when a collision happens. My goal is to archieve this effect with p2js. create(){game.input.addMoveCallback(move, this);} function draw(){ bmd.clear(); bmd.ctx.beginPath(); bmd.ctx.beginPath(); bmd.ctx.moveTo(ship.x, ship.y); bmd.ctx.lineTo(game.input.x , game.input.y); bmd.ctx.lineWidth = 4; bmd.ctx.stroke(); bmd.ctx.closePath(); bmd.render(); }function move(pointer, x, y, isDown) { mouseBody.body.x= x; mouseBody.body.y= y; }function update() { draw(); }