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
Methods
calc(target, inv_dt)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
Vector2 | |
inv_dt |
number |
Returns:
Vector2 the first parameter