Skip to content

Commit

Permalink
remove duplicate type
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Aug 6, 2023
1 parent a904b1f commit 0d4e725
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/dynamics/Contact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 0d4e725

Please sign in to comment.