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

Method syncFromPhysics

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

* Copy physics-engine body positions back to `renderable.pos` and * rotations to the renderable's transform. Called after step * each frame. Adapters that mutate the renderable directly during * step (e.g. `BuiltinAdapter`) may leave this a no-op.

()

Source from the content-addressed store, hash-verified

444 * step (e.g. `BuiltinAdapter`) may leave this a no-op.
445 */
446 syncFromPhysics(): void;
447
448 /**
449 * Optional inverse of {@link syncFromPhysics} — push a single

Callers 9

parity.spec.tsFile · 0.65
stepFunction · 0.65
stepMethod · 0.65
stepFramesFunction · 0.65
parity.spec.tsFile · 0.65
stepFunction · 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 3

stepFunction · 0.52
stepFramesFunction · 0.52
stepFunction · 0.52