How hrober0/crowdsimulation works
This Unity project provides Burst-oriented crowd navigation: users issue movement orders, agents request paths through a mutable NavMesh, and the crowd simulation combines navigation with collision avoidance. The README documents NavMesh graph construction, A* pathfinding, seeker-based costs, obstacle updates, and RVO2-style avoidance. The tree supports locating those subsystems, but no source excerpts were provided, so internal call ownership and finer runtime links cannot be verified.
Main entry points: PathFinding.cs A* Pathfinding · UpdateAgentsVelocitiesJob.cs RVO Avoidance · AgentMovementSystem.cs Agent Movement · NavMeshUpdateJob.cs Local NavMesh Update
Components 17
Navigation
- A* Pathfinding
Assets/Navigation/PathFinding.cs - NavMesh Graph
Assets/Navigation/NavMesh.cs - Local NavMesh Update
Assets/Navigation/Jobs/NavMeshUpdateJob.cs - Nav Obstacles
Assets/Navigation/NavObstacles.cs - Node Attributes
Assets/Navigation/INodeAttributes.cs - Path Seekers
Assets/Navigation/IPathSeeker.cs - Path Movement
Assets/Navigation/PathMovement.cs
Avoidance
- Velocity Calculation
Assets/Examples/ComplexNavigation/Avoidance/Systems/AgentVelocityCalculationSystem.cs - RVO Avoidance
Assets/Avoidance/Jobs/UpdateAgentsVelocitiesJob.cs - Agent Lookup
Assets/Avoidance/Jobs/BuildAgentLookupJob.cs - Obstacle Lookup
Assets/Avoidance/Jobs/BuildObstacleVerticesLookupJob.cs
Crowd Simulation
- Path Requests
Assets/Examples/ComplexNavigation/Agents/Systems/AgentPathRequestSystem.cs - Agent Movement
Assets/Examples/ComplexNavigation/Agents/Systems/AgentMovementSystem.cs - Agent Spatial Hash
Assets/Examples/ComplexNavigation/Agents/Systems/AgentSpatialHashSystem.cs - Position Update
Assets/Examples/ComplexNavigation/Agents/Systems/AgentPositionUpdateSystem.cs
User Input
- Agent Orders
Assets/Examples/ComplexNavigation/PlayerInput/AgentTargetManager.cs
Other components
- User
Connections 18
- User → Agent Orders: issues orders
README.md - Agent Orders → Path Requests: sets targets
- Path Requests → A* Pathfinding: requests paths
- A* Pathfinding → NavMesh Graph: searches graph
README.md - Local NavMesh Update → NavMesh Graph: updates locally
README.md - Nav Obstacles → Local NavMesh Update: provides shapes
README.md - Node Attributes → Path Seekers: informs cost
README.md - Path Seekers → A* Pathfinding: evaluates paths
README.md - A* Pathfinding → Path Movement: returns paths
- Path Movement → Agent Movement: guides movement
- Agent Movement → Position Update: updates positions
- Agent Spatial Hash → Velocity Calculation: supports queries
- Velocity Calculation → RVO Avoidance: calculates velocities
- Agent Lookup → RVO Avoidance: provides agents
- Obstacle Lookup → RVO Avoidance: provides obstacles
- RVO Avoidance → Position Update: steers agents
- A* Pathfinding → Agent Movement: integrates navigation
README.md - RVO Avoidance → Agent Movement: integrates avoidance
README.md