API Docs for: 0.3
Show:

Behavior Class

Module: Behavior
Parent Module: CrowdSim

Base behavior

Constructor

Behavior

(
  • world
)

Parameters:

Methods

getAccel

(
  • agent
  • target
)
Vec2

Return the acceleration result for a agent going to its target.

Parameters:

  • agent Agent
  • target Object

    a destination with target.pos and target.in = function => path point, point, other agent

Returns:

Vec2:

acceleration result of the model

testFun Test function to programatically create worlds

(
  • world
  • debug
)

Provided by the Worlds module.

Defined in src\app\Worlds.js:3255

Parameters:

Properties

One circular path and two opposite groups

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:856

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:11

One single Group

Groups with different velocity

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:110

One start context

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:254

One end context

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:313

Start and end context

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:372

Contexts with different mobility

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:443

Context that triggers stops on empty

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:518

Contexts with different rates

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:581

Contexts mobility and path

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:714

Groups of different sizes

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:60

One path assigned to a group

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:1046

Different waypoint sizes

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:1197

Multiple paths

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:1323

One wall in the path of agents

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:1814

Paths that get closer

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:1942

Paths closer with group and path

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:2178

Groups, paths and contexts.

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:2399

Paths contexts and groups

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:2523

Complex scene with multiple entities.

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:2698

JSON exported world from testFun

Object

Provided by the Worlds module.

Defined in src\app\Worlds.js:3326