mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
formatting
This commit is contained in:
parent
2c049a474d
commit
b5678306f4
@ -196,7 +196,9 @@ test_intersection_from_line(const CollisionEntry &entry) const {
|
||||
|
||||
LPoint3f into_intersection_point = from_origin + t * from_direction;
|
||||
|
||||
LVector3f normal = (has_effective_normal() && line->get_respect_effective_normal()) ? get_effective_normal() : get_normal();
|
||||
LVector3f normal =
|
||||
(has_effective_normal() && line->get_respect_effective_normal())
|
||||
? get_effective_normal() : get_normal();
|
||||
|
||||
new_entry->set_surface_normal(normal);
|
||||
new_entry->set_surface_point(into_intersection_point);
|
||||
@ -239,7 +241,9 @@ test_intersection_from_ray(const CollisionEntry &entry) const {
|
||||
|
||||
LPoint3f into_intersection_point = from_origin + t * from_direction;
|
||||
|
||||
LVector3f normal = (has_effective_normal() && ray->get_respect_effective_normal()) ? get_effective_normal() : get_normal();
|
||||
LVector3f normal =
|
||||
(has_effective_normal() && ray->get_respect_effective_normal())
|
||||
? get_effective_normal() : get_normal();
|
||||
|
||||
new_entry->set_surface_normal(normal);
|
||||
new_entry->set_surface_point(into_intersection_point);
|
||||
|
Loading…
x
Reference in New Issue
Block a user