ld33_umonster

diff src/geom.h @ 7:92d662deb66e

capsule distance seems broken
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 25 Aug 2015 00:38:00 +0300
parents 4a6683050e29
children
line diff
     1.1 --- a/src/geom.h	Sun Aug 23 05:37:09 2015 +0300
     1.2 +++ b/src/geom.h	Tue Aug 25 00:38:00 2015 +0300
     1.3 @@ -67,4 +67,7 @@
     1.4  	bool intersect(const Ray &ray, HitPoint *hit = 0) const;
     1.5  };
     1.6  
     1.7 +float sphere_distance(const Vector3 &cent, float rad, const Vector3 &pt);
     1.8 +float capsule_distance(const Vector3 &a, float ra, const Vector3 &b, float rb, const Vector3 &pt);
     1.9 +
    1.10  #endif	// GEOMOBJ_H_