Move debug rendering code out of PhysicsSystem.