]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Sphere.hh
big batch of changes
[chaz/yoink] / src / Moof / Sphere.hh
index d6903564eac5309c59f6f793eef60e8ea0c0844b..319a3ae24a32b5a36b5d130134fc5bfca5e915aa 100644 (file)
@@ -75,6 +75,13 @@ struct Sphere : public Cullable, public Drawable
 };
 
 
+inline bool checkCollision(const Sphere& a, const Sphere& b)
+{
+       Scalar d = (a.point - b.point).length();
+       return d < (a.radius + b.radius);
+}
+
+
 } // namespace Mf
 
 #endif // _MOOF_SPHERE_HH_
This page took 0.01945 seconds and 4 git commands to generate.