From eb68425ec4d929950e7c025a73d77254df0d46a9 Mon Sep 17 00:00:00 2001 From: stafford Date: Fri, 9 Sep 2016 14:54:30 +1000 Subject: [PATCH] added pair clearing --- matter-js/matter-js.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/matter-js/matter-js.d.ts b/matter-js/matter-js.d.ts index ff5d0dac23..623a221bd8 100644 --- a/matter-js/matter-js.d.ts +++ b/matter-js/matter-js.d.ts @@ -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;