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:
- Not implemented. Radius in which to seek out the target.
- Source:
Not implemented.
Radius in which to seek out the target.
Type:
- number
target :Vector2
- Source:
Type:
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