private bool IntersectRayAABB(TgcRay ray, TgcBoundingAxisAlignBox aabb)
 {
     TgcBoundingAxisAlignBox.Face[] faces = aabb.computeFaces();
     foreach (TgcBoundingAxisAlignBox.Face face in faces)
     {
         if (TgcCollisionUtils.intersectRayPlane(ray, face.Plane, out float t, out TGCVector3 intersection))
         {
             return(true);
         }
     }
     return(false);
 }