UNPKG

@box2d/debug-draw

Version:

Debug drawing helper for @box2d

37 lines 1.57 kB
import { b2Vec2 } from "../common/b2_math"; import { b2Contact } from "./b2_contact"; import { b2ContactVelocityConstraint } from "./b2_contact_solver"; import { b2Joint } from "./b2_joint"; import { b2Body } from "./b2_body"; import { b2TimeStep, b2Profile, b2Position, b2Velocity } from "./b2_time_step"; import { b2ContactListener } from "./b2_world_callbacks"; import { b2Readonly } from "../common/b2_readonly"; /** @internal */ export declare class b2Island { m_listener: b2ContactListener; readonly m_bodies: b2Body[]; readonly m_contacts: b2Contact[]; readonly m_joints: b2Joint[]; readonly m_positions: b2Position[]; readonly m_velocities: b2Velocity[]; m_bodyCount: number; m_jointCount: number; m_contactCount: number; m_bodyCapacity: number; constructor(bodyCapacity: number, contactCapacity: number, jointCapacity: number, listener: b2ContactListener); Resize(bodyCapacity: number): void; Clear(): void; AddBody(body: b2Body): void; AddContact(contact: b2Contact): void; AddJoint(joint: b2Joint): void; private static s_timer; private static s_solverData; private static s_contactSolverDef; private static s_contactSolver; private static s_translation; Solve(profile: b2Profile, step: b2TimeStep, gravity: b2Readonly<b2Vec2>, allowSleep: boolean): void; SolveTOI(subStep: b2TimeStep, toiIndexA: number, toiIndexB: number): void; private static s_impulse; Report(constraints: b2ContactVelocityConstraint[]): void; } //# sourceMappingURL=b2_island.d.ts.map