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

Method setStatic

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

* Toggle static (fixed-position, infinite-mass) state. Static bodies * still participate in collisions; they just don't integrate.

(isStatic?: boolean)

Source from the content-addressed store, hash-verified

142 * still participate in collisions; they just don't integrate.
143 */
144 setStatic(isStatic?: boolean): void;
145 /**
146 * Set the bit mask of collision types this body collides with.
147 * @see collision.types

Callers 15

addBodyMethod · 0.65
setStaticMethod · 0.65
parity.spec.tsFile · 0.65
addBodyMethod · 0.65
setStaticMethod · 0.65
quadtree.spec.jsFile · 0.65
body.spec.jsFile · 0.65

Implementers 1

Bodypackages/melonjs/src/physics/builtin/b

Calls

no outgoing calls

Tested by

no test coverage detected