Extends
Classes
Members
active :boolean
- Description:
- Whether to exert a behaviour's calculated force onto its agent
- Source:
- Overrides:
Whether to exert a behaviour's calculated force onto its agent
Type:
- boolean
maxForce :number
- Description:
- Maximum force a behaviour will exert on the agent.This affects acceleration, deceleration and turn rate of the agent.
- Source:
- Overrides:
Maximum force a behaviour will exert on the agent.This affects acceleration, deceleration and turn rate of the agent.
Type:
- number
maxSpeed :number
- Description:
- The maximum speed a behaviour will reach when active.
- Source:
- Overrides:
The maximum speed a behaviour will reach when active.
Type:
- number
radius :number
- Description:
- Distance in which to begin evading.
- Source:
Distance in which to begin evading.
Type:
- number
Methods
calc(position, velocity, target, inv_dt)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
position |
Vector2 | |
velocity |
Vector2 | |
target |
Vector2 | |
inv_dt |
number |
Returns:
Vector2 the first parameter