Behaviour

Behaviour

Base class for implementing customized behaviours.

Constructor

new Behaviour()

Source:

Members

active :boolean

Description:
  • Whether to exert a behaviour's calculated force onto its agent
Source:
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:
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:
The maximum speed a behaviour will reach when active.
Type:
  • number