add isSensor property to Body (#29339)

This commit is contained in:
Paweł Łaski
2018-10-09 20:59:03 +02:00
committed by Andy
parent df68ef81fc
commit b8d77425e3

View File

@@ -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.
*