From 9fd192e7890cf13a39846d6db9fb1173b6536b66 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 2 Apr 2003 22:29:36 +0000 Subject: [PATCH] broaden 90-degree test substantially --- panda/src/collide/collisionHandlerPusher.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/panda/src/collide/collisionHandlerPusher.cxx b/panda/src/collide/collisionHandlerPusher.cxx index 7ff74e0ca9..7749c62b48 100644 --- a/panda/src/collide/collisionHandlerPusher.cxx +++ b/panda/src/collide/collisionHandlerPusher.cxx @@ -189,12 +189,11 @@ handle_entries() { sd._valid = false; } - } else if (fabs(d) < 0.1) { - // These two shoves are largely at 90 degress to - // each other. If they are both from polygons - // that are a child of the same node, try to - // determine the shape of the corner (convex or - // concave). + } else { + // These two shoves are not in the same direction. + // If they are both from polygons that are a child + // of the same node, try to determine the shape of + // the corner (convex or concave). const CollisionSolid *s1 = sd._entry->get_into(); const CollisionSolid *s2 = sd2._entry->get_into(); if (s1 != (CollisionSolid *)NULL &&