Spring: its internal types

Interfaces

PhysicsStepResult

Step result for physics primitives — adds the instantaneous velocity the stepper has integrated, so a machine's step can lift it into a Frame.Physics without each primitive having to reach into the typed state.

Extends

Type Parameters

S

S

Properties

done
readonly done: boolean;
Inherited from

StepResult.done

state
readonly state: S;
Inherited from

StepResult.state

value
readonly value: number;
Inherited from

StepResult.value

velocity
readonly velocity: number;

StepResult

A step's result: the next state, the value to emit, and whether motion has settled.

Extended by

Type Parameters

S

S

V

V

Properties

done
readonly done: boolean;
state
readonly state: S;
value
readonly value: V;