World:rayCast
Available since LÖVE 0.8.0 This method is not supported in earlier versions. Casts a ray and calls a function for each fixtures it intersects. Function Synopsis World:rayCast( x1, y1, x2, y2, callback ) Arguments number x1 The x position of the starting point of the ray. number y1 The y position of the starting point of the ray. number x2 The x position of the end point of the ray. number y2 The y position of the end point of the ray. function callback A function called