mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
ray-polygon collision normals?
This commit is contained in:
parent
624badf8ad
commit
24c69cc00a
@ -424,6 +424,7 @@ test_intersection_from_ray(CollisionHandler *record,
|
|||||||
PT(CollisionEntry) new_entry = new CollisionEntry(entry);
|
PT(CollisionEntry) new_entry = new CollisionEntry(entry);
|
||||||
|
|
||||||
new_entry->set_into_intersection_point(plane_point);
|
new_entry->set_into_intersection_point(plane_point);
|
||||||
|
new_entry->set_into_surface_normal(get_normal());
|
||||||
|
|
||||||
record->add_entry(new_entry);
|
record->add_entry(new_entry);
|
||||||
return 1;
|
return 1;
|
||||||
@ -474,6 +475,7 @@ test_intersection_from_segment(CollisionHandler *record,
|
|||||||
PT(CollisionEntry) new_entry = new CollisionEntry(entry);
|
PT(CollisionEntry) new_entry = new CollisionEntry(entry);
|
||||||
|
|
||||||
new_entry->set_into_intersection_point(plane_point);
|
new_entry->set_into_intersection_point(plane_point);
|
||||||
|
new_entry->set_into_surface_normal(get_normal());
|
||||||
|
|
||||||
record->add_entry(new_entry);
|
record->add_entry(new_entry);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user