|
@@ -121,8 +121,8 @@ test_intersection_from_sphere(CollisionHandler *record,
|
|
|
LPoint3f into_intersection_point = into_normal * (dist - from_radius);
|
|
LPoint3f into_intersection_point = into_normal * (dist - from_radius);
|
|
|
float into_depth = into_radius + from_radius - dist;
|
|
float into_depth = into_radius + from_radius - dist;
|
|
|
|
|
|
|
|
- new_entry->set_into_surface_normal(into_normal);
|
|
|
|
|
- new_entry->set_into_intersection_point(into_intersection_point);
|
|
|
|
|
|
|
+ new_entry->set_into_surface_normal(into_normal * entry.get_inv_wrt_space());
|
|
|
|
|
+ new_entry->set_into_intersection_point(into_intersection_point * entry.get_inv_wrt_space());
|
|
|
new_entry->set_into_depth(into_depth);
|
|
new_entry->set_into_depth(into_depth);
|
|
|
|
|
|
|
|
record->add_entry(new_entry);
|
|
record->add_entry(new_entry);
|