From 41486a54894a5f3debffa4f52b30d851b4101759 Mon Sep 17 00:00:00 2001 From: Chris Antaki Date: Thu, 6 Sep 2018 06:37:01 -0700 Subject: [PATCH 1/2] Adds params to IBodyOptions interface Source: https://github.com/schteppe/cannon.js/blob/master/src/objects/Body.js#L17-L35 --- types/cannon/index.d.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/cannon/index.d.ts b/types/cannon/index.d.ts index 56272a6b1f..cf3fbe2af8 100644 --- a/types/cannon/index.d.ts +++ b/types/cannon/index.d.ts @@ -454,6 +454,15 @@ declare module CANNON { type?: number; linearDamping?: number; angularDamping?: number; + allowSleep?: boolean; + sleepSpeedLimit?: number; + sleepTimeLimit?: number; + collisionFilterGroup?: number; + collisionFilterMask?: number; + fixedRotation?: boolean; + linearFactor?: Vec3; + angularFactor?: Vec3; + shape?: Shape; } export class Body extends EventTarget { From 6a2694a2fd4297a592f97d40d1dd8ec4cdcd26e6 Mon Sep 17 00:00:00 2001 From: Chris Antaki Date: Thu, 6 Sep 2018 08:23:24 -0700 Subject: [PATCH 2/2] Removes a few properties from IBodyOptions These properties aren't present in the latest release --- types/cannon/index.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/types/cannon/index.d.ts b/types/cannon/index.d.ts index cf3fbe2af8..6cf0043878 100644 --- a/types/cannon/index.d.ts +++ b/types/cannon/index.d.ts @@ -460,8 +460,6 @@ declare module CANNON { collisionFilterGroup?: number; collisionFilterMask?: number; fixedRotation?: boolean; - linearFactor?: Vec3; - angularFactor?: Vec3; shape?: Shape; }