timelinefx:timelinefx.tlLine.RayCollide
Method RayCollide:tlCollisionResult( px:Float, py:Float, dx:Float, dy:Float, maxdistance:Float=0 )
See is a ray collides with this tlLine Returns tlCollisionResult with the results of the collision You can use this to test for a collision with a ray. Pass the origin of the ray with px and py, and set the direction of the ray with dx and dy. dx and dy will be normalised and extended infinitely, if maxdistance equals 0 (default), otherwise set maxdistance to how ever far you want the ray to extend to.
Parameters
px x origin of the ray
py y origin of the ray
dx x direction of the ray
dy y direction of the ray
maxdistance maximum distance of the ray, or 0 for inifinate