Colliding with a drawn line
Posted: Mon Nov 30, 2009 12:31 am
Is it possible to check if something collides with a line drawn with the love.graphics.line() function? Here's the code I use to draw the line:
x1, x2, y1, and y2 can be moved by the arrow keys and WASD.
Help would be appreciated
Code: Select all
function draw()
love.graphics.line(x1,y1,x2,y2)
love.graphics.circle(1,x1,y1,10)
love.graphics.circle(1,x2,y2,10)
end
Help would be appreciated