timelinefx:timelinefx.tlQuadTree.ForEachObjectAlongLine
Method ForEachObjectAlongLine:Int( line:tlLine, data:@object, onFoundObject:Void( @object,@object,tlCollisionResult ), Layer:Int[] )
Query a quadtree with a tlLine This will query the quadtree with a line and perform a callback on all the objects the tlLine intersects. Pass the quadtree to do the query on, the tlLine to query with, an object you want to pass through to the callback, and the callback itself. It's worth noting that the callback also requiresyou have a tlCollisionResult parameter which will be passed to the callback function with information about the results of the raycast.
Parameters
line A tlLine that will be used to define the area that is searched
Data any object object to pass to the query
onFoundObject A function pointer to function where you can perform whatever tasks you need to with the objects found.
Layer Array of layers in the quadtree that you want to search