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 | null
import { nextState } from '@driftengine/ai';

Parameters

ParameterTypeDescription
stateAgentState
transitionAgentTransition