public static bool CalculateDistance <T>(ref T target, ColliderDistanceInput input) where T : struct, ICollidable { var collector = new AnyHitCollector <DistanceHit>(input.MaxDistance); return(target.CalculateDistance(input, ref collector)); }
public static bool ColliderCast <T>(ref T target, ColliderCastInput input) where T : struct, ICollidable { var collector = new AnyHitCollector <ColliderCastHit>(sfloat.One); return(target.CastCollider(input, ref collector)); }