Position-based multi-agent dynamics for real-time crowd simulation

Tomer Weiss, Alan Litteneker, Chenfanfu Jiang, Demetri TerzopoulosSymposium on Computer Animation 2017

Abstract

This paper introduces a novel crowd simulation framework that adapts Position-Based Dynamics (PBD)—a technique typically reserved for cloth and fluid animation—to simulate hundreds of thousands of autonomous agents in real-time. By treating collision avoidance as a set of geometric constraints rather than physical forces, the proposed method achieves a simulation that is unconditionally stable, highly efficient, and capable of handling both sparse groups and extremely dense crowds.

Introduction

Simulating large crowds requires a delicate balance between individual agent detail and overall computational efficiency. Existing methodologies generally fall into two categories: Continuum (Eulerian) approaches, which treat crowds as fluids, and Discrete (Lagrangian) approaches, which treat agents as individual particles. While Eulerian models are fast for dense crowds, they often lose the individual "personality" of agents. Conversely, Lagrangian models (such as social force models) excel in sparse scenarios but frequently become computationally expensive or numerically unstable in high-density environments, often requiring extremely small time steps to prevent unrealistic agent overlaps or "explosions."

This research addresses these challenges by developing a unified, discrete model that remains stable and interactive even when agent populations reach six figures.

Methodology

The core innovation of this work is the application of the PBD framework to multi-agent dynamics. Unlike traditional force-based models that calculate accelerations, PBD directly manipulates positions to satisfy geometric constraints.

Geometric Constraints and Avoidance

The system utilizes several key components to manage agent behavior:

  • Velocity Blending: To account for agent intent, the system blends a preferred velocity (derived from a path planner) with the agent's current velocity, ensuring inertia while maintaining goal-oriented movement.
  • Long-Range Collision Constraints: The authors derive a constraint based on "time to collision" ($\tau$). If two agents are on a collision course, the solver predicts their future positions and applies a constraint to prevent overlap before it occurs.
  • Tangential Correction: In dense crowds, traditional repulsion often causes jitter. The authors propose a "tangential" correction that decomposes the collision response, applying only the component that helps agents "slide" past one another.
Geometric derivation of the PBD collision avoidance constraint, showing the transition from predicted positions to corrected positions based on time-to-collision.

Additionally, the model incorporates frictional contact and cohesion constraints—similar to those used for granular materials—to handle physical bumping and encourage group coherence through an XSPH viscosity term.

Results and Discussion

The framework was evaluated using several procedural benchmarks, including sparse/dense passing, multi-species simulations (Bears and Rabbits), and bottleneck scenarios.

Performance and Scale

The system demonstrates massive scalability, simulating over 100,000 agents at interactive rates (~43ms per frame) on a consumer-grade GPU (NVIDIA GT 750M). Because PBD is an unconditionally stable implicit scheme, the simulation remains robust even with large time steps or extreme densities where force-based models typically fail.

Simulation results demonstrating emergent lane formation and the handling of massive agent populations in real-time.

Emergent Behavior

A significant finding is the natural emergence of realistic crowd phenomena. The model successfully produces lane formation (agents organizing into streams to pass each other) and arching/jamming at bottlenecks without explicit programming for these behaviors. By focusing on tangential avoidance rather than normal repulsion, the model captures the human preference for maintaining forward momentum by sliding around obstacles.

Conclusion and Future Work

By reframing social physics as geometry, this PBD approach provides a highly stable and scalable solution for real-time crowd simulation. While the current model requires some manual parameter tuning for constraint stiffness and does not yet incorporate complex psychological hierarchies, it represents a major step forward in simulating "smart particles" that mimic human biomechanics. Future research will explore more complex constraints, such as turning rate limits and integration with motion fields for more varied interactions.

Summary updated

BibTeX
@inproceedings{weiss2017position,
  author = {Tomer Weiss and Alan Litteneker and Chenfanfu Jiang and Demetri Terzopoulos},
  title = {{Position-based multi-agent dynamics for real-time crowd simulation}},
  booktitle = {Symposium on Computer Animation},
  year = {2017},
  doi = {10.1145/3099564.3108160},
}
Figure