Implement an index into physics (optimization)

Greatly improves physics resolution, especially with fewer than
MAX_PHYSICS_BODIES objects in the scene.