Godot physics relies on ID zero being invalid, whereas BVH 0 is a valid ID.
And fix copyright headers in new code.
Complete rewrite of spatial partitioning using a bounding volume hierarchy rather than octree. Switchable in project settings between using octree or BVH for rendering and physics.