Implicit Crowds: Optimization Integrator for Robust Crowd Simulation