Behavior Class
Base behavior
Constructor
Item Index
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
getAccel
(
Vec2
-
agent
-
target
Return the acceleration result for a agent going to its target.
Parameters:
Returns:
Vec2:
acceleration result of the model