MCPcopy Create free account
hub / github.com/melonjs/melonJS / step

Method step

packages/melonjs/src/physics/adapter.ts:438–438  ·  view source on GitHub ↗

Advance the simulation by one frame. Called from `World.update(dt)`.

(dt: number)

Source from the content-addressed store, hash-verified

436
437 /** Advance the simulation by one frame. Called from `World.update(dt)`. */
438 step(dt: number): void;
439
440 /**
441 * Copy physics-engine body positions back to `renderable.pos` and

Callers 13

parity.spec.tsFile · 0.65
stepMethod · 0.65
quadtree.spec.jsFile · 0.65
stepBothFunction · 0.65
stepMethod · 0.65
stepFramesFunction · 0.65

Implementers 3

MatterAdapterpackages/matter-adapter/src/index.ts
BuiltinAdapterpackages/melonjs/src/physics/builtin/b
PlanckAdapterpackages/planck-adapter/src/index.ts

Calls

no outgoing calls

Tested by 2

stepBothFunction · 0.52
stepFramesFunction · 0.52