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

Method updateShape

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

Replace the body's collision geometry without re-creating the body.

(renderable: Renderable, shapes: BodyShape[])

Source from the content-addressed store, hash-verified

480
481 /** Replace the body's collision geometry without re-creating the body. */
482 updateShape?(renderable: Renderable, shapes: BodyShape[]): void;
483
484 /**
485 * Portable velocity / force / position API. Every adapter implements

Callers 7

parity.spec.tsFile · 0.65
parity.spec.tsFile · 0.65
walkFunction · 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

no test coverage detected