public static bool CalculateDistance <T>(ref T target, ColliderDistanceInput input) where T : struct, IQueryable { var collector = new AnyHitCollector <DistanceHit>(input.MaxDistance); return(target.CalculateDistance(input, ref collector)); }
public static bool RayCast <T>(ref T target, RaycastInput input) where T : struct, IQueryable { var collector = new AnyHitCollector <RaycastHit>(1.0f); return(target.CastRay(input, ref collector)); }
public static bool ColliderCast <T>(ref T target, ColliderCastInput input) where T : struct, IQueryable { var collector = new AnyHitCollector <ColliderCastHit>(1.0f); return(target.CastCollider(input, ref collector)); }
public static bool OverlapCollider <T>(ref T target, OverlapColliderInput input) where T : struct, IQueryable { var collector = new AnyHitCollector <OverlapColliderHit>(1.0f); return(target.OverlapCollider(input, ref collector)); }