Extends
Classes
Members
_radius
- Description:
- How big should the circle in front of the agent be.
- Source:
How big should the circle in front of the agent be.
_theta :number
- Description:
- This sets a point on the perimeter circle that is infront of the agent.
- Source:
This sets a point on the perimeter circle that is infront of the agent.
Type:
- number
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
dtheta :number
- Description:
- This clamps the offset that modify the WandererBehaviour#theta value each frame.
- Source:
This clamps the offset that modify the WandererBehaviour#theta value each frame.
Type:
- number
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(velocity, target, inv_dt) → {Vector2}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
velocity |
Vector2 | |
target |
Vector2 | |
inv_dt |
number |
Returns:
the first parameter
- Type
- Vector2