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:
Erik Šabič 2023-04-05 21:37:59 +02:00 committed by GitHub
parent 21e1893c4f
commit 0a17751d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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