CollisionSystem exporter: code reviewed and rewritten.