Minor mistake in Frustum::intersects_obb (#8305)
# Objective Fix a minor mistake ## Solution Replaced an extraction of a plane normal with an existing method
This commit is contained in:
parent
21e1893c4f
commit
0a17751d16
@ -209,7 +209,7 @@ impl Frustum {
|
||||
if idx == 5 && !intersect_far {
|
||||
continue;
|
||||
}
|
||||
let p_normal = Vec3A::from(plane.normal_d());
|
||||
let p_normal = plane.normal();
|
||||
let relative_radius = aabb.relative_radius(&p_normal, &axes);
|
||||
if plane.normal_d().dot(aabb_center_world) + relative_radius <= 0.0 {
|
||||
return false;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user