ray-polygon collision normals?

This commit is contained in:
David Rose 2002-08-01 21:24:15 +00:00
parent 624badf8ad
commit 24c69cc00a

View File

@ -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;