コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }