public static LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, [ layerMask, [ minDepth, [ maxDepth ) : int | ||
start | Vector2 | The start point of the line in world space. |
end | Vector2 | The end point of the line in world space. |
results | RaycastHit2D | Returned array of objects that intersect the line. |
layerMask | [ | Filter to detect Colliders only on certain layers. |
minDepth | [ | Only include objects with a Z coordinate (depth) greater than or equal to this value. |
maxDepth | [ | Only include objects with a Z coordinate (depth) less than or equal to this value. |
return | int |
Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results ) : int | |
Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, int layerMask ) : int | |
Physics2D::LinecastNonAlloc ( Vector2 start, Vector2 end, RaycastHit2D results, int layerMask, float minDepth ) : int |