File tree Expand file tree Collapse file tree
src/physics/matter-js/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 */
66
77/**
8- * [description]
8+ * Enables a Matter-enabled Game Object to be a sensor. Should be used as a mixin and not directly.
99 *
1010 * @namespace Phaser.Physics.Matter.Components.Sensor
1111 * @since 3.0.0
1212 */
1313var Sensor = {
1414
1515 /**
16- * [description]
16+ * Set the body belonging to this Game Object to be a sensor.
17+ * Sensors trigger collision events, but don't react with colliding body physically.
1718 *
1819 * @method Phaser.Physics.Matter.Components.Sensor#setSensor
1920 * @since 3.0.0
2021 *
21- * @param {boolean } value - [description]
22+ * @param {boolean } value - `true` to set the body as a sensor, or `false` to disable it.
2223 *
2324 * @return {Phaser.GameObjects.GameObject } This Game Object.
2425 */
@@ -30,12 +31,12 @@ var Sensor = {
3031 } ,
3132
3233 /**
33- * [description]
34+ * Is the body belonging to this Game Object a sensor or not?
3435 *
3536 * @method Phaser.Physics.Matter.Components.Sensor#isSensor
3637 * @since 3.0.0
3738 *
38- * @return {boolean } [description]
39+ * @return {boolean } `true` if the body is a sensor, otherwise `false`.
3940 */
4041 isSensor : function ( )
4142 {
You can’t perform that action at this time.
0 commit comments