Skip to content

Commit a5e8d1e

Browse files
committed
Added the Sensor Matter component.
1 parent 4a89ffa commit a5e8d1e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var Sensor = {
2+
3+
setSensor: function (value)
4+
{
5+
this.body.isSensor = value;
6+
7+
return this;
8+
},
9+
10+
isSensor: function ()
11+
{
12+
return this.body.isSensor;
13+
}
14+
15+
};
16+
17+
module.exports = Sensor;

0 commit comments

Comments
 (0)