Beispiel #1
0
 public static bool CheckAABB(Camera camera, AABB aabb)
 {
     Plane[] planes = GeometryUtility.CalculateFrustumPlanes(camera.projectionMatrix * camera.worldToCameraMatrix);
     return(GeometryUtility.TestPlanesAABB(planes, aabb.ToBounds()));
 }
Beispiel #2
0
 public static bool CheckAABB(Camera camera, AABB aabb, Plane[] cameraWorldPlanes)
 {
     return(GeometryUtility.TestPlanesAABB(cameraWorldPlanes, aabb.ToBounds()));
 }
Beispiel #3
0
 public bool CheckAABB(AABB aabb)
 {
     return(GeometryUtility.TestPlanesAABB(_worldPlanes, aabb.ToBounds()));
 }