Esempio n. 1
0
 public Sphere(Sphere other) : this(other.center, other.radius, other.transform)
 {
 }
Esempio n. 2
0
 public Sphere WithCenter(Vector3 center)
 {
     var copy = new Sphere(this); copy.center = center; return(copy);
 }
Esempio n. 3
0
 public Capsule(Sphere sphere, Vector3 otherCenter)
     : this(sphere.center, otherCenter, sphere.radius, sphere.transform)
 {
 }
Esempio n. 4
0
 /// <summary>
 /// Returns the distance between the closest points on the Rect and the Sphere,
 /// or 0 if the two overlap.
 /// </summary>
 public static float DistanceTo(Rect rect, Sphere sphere)
 {
     return(DistanceBetween(sphere, rect));
 }
Esempio n. 5
0
 public static bool DoesOverlap(Box box, Sphere sphere)
 {
     return(DoesOverlap(sphere, box));
 }
Esempio n. 6
0
 public static bool DoesOverlap(Rect rect, Sphere sphere)
 {
     return(DoesOverlap(sphere, rect));
 }