mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-01-12 22:46:38 +08:00
add isSensor property to Body (#29339)
This commit is contained in:
8
types/matter-js/index.d.ts
vendored
8
types/matter-js/index.d.ts
vendored
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user