From b8d77425e31e47224d0a605ae080e18726746f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=81aski?= Date: Tue, 9 Oct 2018 20:59:03 +0200 Subject: [PATCH] add isSensor property to Body (#29339) --- types/matter-js/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/matter-js/index.d.ts b/types/matter-js/index.d.ts index 4275785191..04ed8bd898 100644 --- a/types/matter-js/index.d.ts +++ b/types/matter-js/index.d.ts @@ -882,6 +882,14 @@ declare namespace Matter { * @default false */ isStatic: boolean; + /** + * 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; /** * An arbitrary `String` name to help the user identify and manage bodies. *