You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/body/Body.js
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ var Axes = require('../geometry/Axes');
53
53
angularSpeed: 0,
54
54
velocity: {x: 0,y: 0},
55
55
angularVelocity: 0,
56
+
isSensor: false,
56
57
isStatic: false,
57
58
isSleeping: false,
58
59
motion: 0,
@@ -788,6 +789,14 @@ var Axes = require('../geometry/Axes');
788
789
* @default false
789
790
*/
790
791
792
+
/**
793
+
* A flag that indicates whether a body is a sensor. Sensor triggers collision events, but doesn't react with colliding body physically.
794
+
*
795
+
* @property isSensor
796
+
* @type boolean
797
+
* @default false
798
+
*/
799
+
791
800
/**
792
801
* A flag that indicates whether the body is considered sleeping. A sleeping body acts similar to a static body, except it is only temporary and can be awoken.
793
802
* If you need to set a body as sleeping, you should use `Sleeping.set` as this requires more than just setting this flag.
0 commit comments