@box2d/debug-draw
Version:
Debug drawing helper for @box2d
17 lines • 674 B
TypeScript
import { b2Contact } from "./b2_contact";
import { b2Fixture } from "./b2_fixture";
type CreateFcn = (fixtureA: b2Fixture, indexA: number, fixtureB: b2Fixture, indexB: number) => b2Contact;
type DestroyFcn = (contact: b2Contact) => void;
export type b2ContactRegister = undefined | {
createFcn: CreateFcn;
destroyFcn: DestroyFcn;
};
export declare class b2ContactFactory {
readonly m_registers: b2ContactRegister[][];
constructor();
private AddType;
Create(fixtureA: b2Fixture, indexA: number, fixtureB: b2Fixture, indexB: number): b2Contact | null;
Destroy(contact: b2Contact): void;
}
export {};
//# sourceMappingURL=b2_contact_factory.d.ts.map