Intelligence · function
nextState
The next state, or null when the transition is illegal from here.
Explained in Agents and behaviour.
function nextState(state: AgentState, transition: AgentTransition): AgentState | nullimport { nextState } from '@driftengine/ai';Parameters
| Parameter | Type | Description |
|---|---|---|
state | AgentState | |
transition | AgentTransition |