timelinefx:timelinefx.tlBox.RayCollide
Method RayCollide:tlCollisionResult( px:Float, py:Float, dx:Float, dy:Float, maxdistance:Float=0 )
See is a ray collides with this tlBox 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. If the ray starts inside the box then result.RayOriginInside will be set to true.
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