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

Method setStatic

packages/planck-adapter/src/index.ts:707–712  ·  view source on GitHub ↗
(renderable: Renderable, isStatic: boolean)

Source from the content-addressed store, hash-verified

705 // -------------------------------------------------------------------
706
707 setStatic(renderable: Renderable, isStatic: boolean): void {
708 const body = this.bodyMap.get(renderable);
709 if (body) {
710 body.setType(isStatic ? "static" : "dynamic");
711 }
712 }
713
714 setGravityScale(renderable: Renderable, scale: number): void {
715 const body = this.bodyMap.get(renderable);

Callers

nothing calls this directly

Calls 2

setTypeMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected