From 0d4e72564a17a33b2831c7ab838da823c70f087a Mon Sep 17 00:00:00 2001 From: Ali Shakiba Date: Sat, 5 Aug 2023 21:38:22 -0700 Subject: [PATCH] remove duplicate type --- src/dynamics/Contact.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/dynamics/Contact.ts b/src/dynamics/Contact.ts index df4842fd..01803ce0 100644 --- a/src/dynamics/Contact.ts +++ b/src/dynamics/Contact.ts @@ -73,17 +73,6 @@ export type EvaluateFunction = ( indexB: number ) => void; -export type ContactCallback = ( - manifold: Manifold, - xfA: Transform, - fixtureA: Fixture, - indexA: number, - xfB: Transform, - fixtureB: Fixture, - indexB: number -) => void /* & { destroyFcn?: (contact: Contact) => void }*/; - - /** * Friction mixing law. The idea is to allow either fixture to drive the * friction to zero. For example, anything slides on ice. @@ -1145,7 +1134,7 @@ export class Contact { /** * @internal */ - static addType(type1: ShapeType, type2: ShapeType, callback: ContactCallback): void { + static addType(type1: ShapeType, type2: ShapeType, callback: EvaluateFunction): void { s_registers[type1] = s_registers[type1] || {}; s_registers[type1][type2] = callback; }