示例#1
0
        public static Boolean GetCollision(SphereCollision collidableA, BoundEdgeCollision collidableB, out Vector3 position,
                                           out Vector3 normal, out float scale, out float distance)
        {
            if (SphereOnEdgeCollision.GetCollision(collidableA, collidableB, out position, out normal, out scale, out distance))
            {
                return(collidableB.Restriction(scale, distance));
            }

            return(false);
        }
示例#2
0
 public static Boolean GetCollision(SphereCollision collidableA, BoundEdgeCollision collidableB, out Vector3 position,
                                    out Vector3 normal)
 {
     return(GetCollision(collidableA, collidableB, out position, out normal, out var f1, out var f2));
 }