Panic Class
Helbing-Farkas,Vicsek Simulating dynamical features of escape panic
Constructor
Item Index
Methods
Properties
- One circular path and two opposite groups
- Groups with different velocity
- One start context
- One end context
- Start and end context
- Contexts with different mobility
- Context that triggers stops on empty
- Contexts with different rates
- Contexts mobility and path
- Groups of different sizes
- One path assigned to a group
- Different waypoint sizes
- Multiple paths
- One wall in the path of agents
- Paths that get closer
- Paths closer with group and path
- Groups, paths and contexts.
- Paths contexts and groups
- Complex scene with multiple entities.
- JSON exported world from testFun
Methods
calculateAgentForce
(
Vec2
-
i
-
j
Calculate the social force between two agents i,j.
Returns:
Vec2:
force
calculateWallForce
(
Vec2
-
i
-
projection
-
width
Calculate the social force between an agent and a wall.
Returns:
Vec2:
force
getAccel
(
Vec2
-
agent
-
target
Return the acceleration result for a agent going to its target.
Parameters:
Returns:
Vec2:
acceleration result of the model