mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
added pair clearing
This commit is contained in:
Vendored
+20
@@ -1970,6 +1970,11 @@ declare namespace Matter {
|
||||
*/
|
||||
enableSleeping: boolean;
|
||||
|
||||
/**
|
||||
* Collision pair set for this `Engine`.
|
||||
*/
|
||||
pairs: any;
|
||||
|
||||
/**
|
||||
* An integer `Number` that specifies the number of position iterations to perform each update.
|
||||
* The higher the value, the higher quality the simulation will be at the expense of performance.
|
||||
@@ -2174,6 +2179,21 @@ declare namespace Matter {
|
||||
type: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The `Matter.Pairs` module contains methods for creating and manipulating collision pair sets.
|
||||
*
|
||||
* @class Pairs
|
||||
*/
|
||||
export class Pairs {
|
||||
/**
|
||||
* Clears the given pairs structure.
|
||||
* @method clear
|
||||
* @param {pairs} pairs
|
||||
* @return {pairs} pairs
|
||||
*/
|
||||
static clear(pairs: any): any;
|
||||
}
|
||||
|
||||
export interface IPair {
|
||||
id: number;
|
||||
bodyA: Body;
|
||||
|
||||
Reference in New Issue
Block a user