Physics · interface

IslandSolver

Something that can advance one island through a whole tick.

Explained in Your first game, Rigid bodies.

interface IslandSolver
import type { IslandSolver } from '@driftengine/physics';

Properties

NameTypeDescription
solveStatereadonlyoptionalIslandSolveStateThe same solve as flat state, for a character that works somewhere else.
More

SerialExecutor and ShuffledExecutor call solveIsland and never read this. A staged or pooled character cannot: it solves a mirror of this state in shared memory, so it needs the state and not the method that closes over the live one. Optional because Executor is a seam a consumer may implement, and a character of their own owes nothing here.

Methods

solveIsland

solveIsland(island: number): void
ParameterTypeDescription
islandnumber