Nez.Portable/Physics/Physics.cs
/// <summary>
/// casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
/// </summary>
/// <returns>The all.</returns>
/// <param name="start">Start.</param>
/// <param name="end">End.</param>
/// <param name="hits">Hits.</param>
/// <param name="layerMask">Layer mask.</param>
casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
public static int linecastAll(Vector2 start, Vector2 end, RaycastHit[] hits, int layerMask = allLayers)
        {
            Assert.isFalse(hits.Length == 0, "An empty hits array was passed in. No hits will ever be returned.");
            return _spatialHash.linecast(start, end, hits, layerMask);
        }
public static int linecastAll ( Vector2 start , Vector2 end , RaycastHit [ ] hits , int layerMask = allLayers ) { Assert . isFalse ( hits . Length == 0 , " " ) ; return _spatialHash . linecast ( start , end , hits , layerMask ) ; }
casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
casts a line through the spatial hash and fills the hits array up with any colliders that the line hits
None
start
Vector2
None
end
Vector2
None
hits
RaycastHit[]
None
layerMask
int
None