Add sphere-point collision check

This commit is contained in:
rexy712 2021-01-13 10:13:19 -08:00
parent 5a22d09e47
commit 93cc1b4d02

View File

@ -222,10 +222,7 @@ namespace egn{
return false;
}
bool check_collision(const sphere& l, const point& r, float epsilon){
(void)l;
(void)r;
(void)epsilon;
return false;
return math::fuzzy_eq(l.point1, r, l.radius + epsilon);
}
bool check_collision(const line_segment& l, const line_segment& r, float epsilon){
(void)l;