From 14338e477282b3be198325f7fff4ea55e5ad12d9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 10 Dec 2003 01:55:45 +0000 Subject: [PATCH] check for collisions with spheres that are moving slightly away from polygon --- panda/src/collide/collisionPolygon.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/panda/src/collide/collisionPolygon.cxx b/panda/src/collide/collisionPolygon.cxx index f3c9bab1c8..25cc440e68 100644 --- a/panda/src/collide/collisionPolygon.cxx +++ b/panda/src/collide/collisionPolygon.cxx @@ -415,10 +415,10 @@ test_intersection_from_sphere(const CollisionEntry &entry) const { LPoint3f a = sphere->get_center() * wrt_prev_space->get_mat(); LVector3f delta = b - a; - // First, there is no collision if the "from" object is moving in - // the same direction as the plane's normal. + // First, there is no collision if the "from" object is definitely + // moving in the same direction as the plane's normal. float dot = delta.dot(get_normal()); - if (dot > 0.0f) { + if (dot > 0.1f) { return NULL; }