Skip to content

TModel

Overview

Type TModel

The model type for Sim.ts must have a reset function and if it has a step function, it must have this signature. See https://github.com/phetsims/joist/issues/861 for the origins and design history of TModel.

@author Sam Reid (PhET Interactive Simulations)

import type { TModel } from 'scenerystack/joist';
  • step?: ( dt: number ) => void
  • reset: () => void

Source Code

See the source for TModel.ts in the joist repository.