MCPcopy Index your code
hub / github.com/phaserjs/phaser / setMass

Method setMass

types/phaser.d.ts:111332–111332  ·  view source on GitHub ↗

* Sets the mass of the physics body. Mass affects collision response -- heavier * bodies push lighter ones more during collisions. * @param value The new mass of the body. Must be a positive number. * @returns This Game Object.

(value: number)

Source from the content-addressed store, hash-verified

111330 * @returns This Game Object.
111331 */
111332 setMass(value: number): this;
111333 }
111334
111335 /**

Callers 7

Mass.jsFile · 0.80
Body.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80
StaticBody.test.jsFile · 0.80
Body.test.jsFile · 0.80
Mass.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected