BVH tree working