public static LinecastAll ( Vector2 start, Vector2 end, [ layerMask, [ minDepth, [ maxDepth ) : RaycastHit2D[] | ||
start | Vector2 | The start point of the line in world space. |
end | Vector2 | The end point of the line in world space. |
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 | RaycastHit2D[] |
Physics2D::LinecastAll ( Vector2 start, Vector2 end ) : RaycastHit2D[] | |
Physics2D::LinecastAll ( Vector2 start, Vector2 end, int layerMask ) : RaycastHit2D[] | |
Physics2D::LinecastAll ( Vector2 start, Vector2 end, int layerMask, float minDepth ) : RaycastHit2D[] |