UNPKG

phaser

Version:

A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.

50 lines (42 loc) 1.04 kB
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var Body = require('../lib/body/Body'); /** * [description] * * @name Phaser.Physics.Matter.Components.Static * @since 3.0.0 */ var Static = { /** * [description] * * @method Phaser.Physics.Matter.Components.Static#setStatic * @since 3.0.0 * * @param {boolean} value - [description] * * @return {Phaser.GameObjects.GameObject} This Game Object. */ setStatic: function (value) { Body.setStatic(this.body, value); return this; }, /** * [description] * * @method Phaser.Physics.Matter.Components.Static#isStatic * @since 3.0.0 * * @return {boolean} [description] */ isStatic: function () { return this.body.isStatic; } }; module.exports = Static;