| Parameters | |
|---|---|
px |
x coordinate of the starting point of the ray |
py |
y coordinate of the starting point of the ray |
d |
tlVector2 describing the direction of the raycast |
maxdistance |
The maximum distance of the ray cast, or 0 for infinite |
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 |