From 64d06b4b3d76ccb46fb20ff6a1ef57861ac031f0 Mon Sep 17 00:00:00 2001 From: stafford Date: Tue, 30 Aug 2016 18:07:58 +1000 Subject: [PATCH] add Body.isSensor --- matter-js/matter-js.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/matter-js/matter-js.d.ts b/matter-js/matter-js.d.ts index 6976ffd144..f3f23fa9f8 100644 --- a/matter-js/matter-js.d.ts +++ b/matter-js/matter-js.d.ts @@ -250,6 +250,14 @@ declare namespace Matter { * @type number */ inverseMass?: number; + /** + * A flag that indicates whether a body is a sensor. Sensor triggers collision events, but doesn't react with colliding body physically. + * + * @property isSensor + * @type boolean + * @default false + */ + isSensor: boolean; /** * 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. * If you need to set a body as sleeping, you should use `Sleeping.set` as this requires more than just setting this flag.