mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
add Body.isSensor
This commit is contained in:
Vendored
+8
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user