Hey, I'm making a beam weapon and it's length needs to be rather long 10000+ pixles.
And it's needs to cut down it's length if it hits an object.
I can do this: collision with blah blah: set width to distance(x1, x2, y1, y2) etc.
The problem is when it is a near miss the frame rate chugs down to less than 1! I know, my laptop, not a gaming machine.
But I was wondering if there was any better way to do it. Angle detection or something. Any ideas?