In order to implement ground collision checking between wheels and a terrain mesh, a performant approach to look up the nearest vertices to the wheel was necessary, so today I implemented an octree to subdivide the terrain mesh in manageable chunks, simple code, around 50 LOC