From 24c69cc00aa2d17b43b8293310c3f7139f712e19 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 1 Aug 2002 21:24:15 +0000 Subject: [PATCH] ray-polygon collision normals? --- panda/src/collide/collisionPolygon.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/panda/src/collide/collisionPolygon.cxx b/panda/src/collide/collisionPolygon.cxx index e9d71b50de..bdcb7a2dc9 100644 --- a/panda/src/collide/collisionPolygon.cxx +++ b/panda/src/collide/collisionPolygon.cxx @@ -424,6 +424,7 @@ test_intersection_from_ray(CollisionHandler *record, PT(CollisionEntry) new_entry = new CollisionEntry(entry); new_entry->set_into_intersection_point(plane_point); + new_entry->set_into_surface_normal(get_normal()); record->add_entry(new_entry); return 1; @@ -474,6 +475,7 @@ test_intersection_from_segment(CollisionHandler *record, PT(CollisionEntry) new_entry = new CollisionEntry(entry); new_entry->set_into_intersection_point(plane_point); + new_entry->set_into_surface_normal(get_normal()); record->add_entry(new_entry); return 1;