q5play
    Preparing search index...

    Interface EmbindModule

    interface EmbindModule {
        B2_GRAPH_COLOR_COUNT: number;
        B2_HASH_INIT: number;
        B2_PI: number;
        b2AABB: new () => b2AABB;
        b2BodyDef: { new (): b2BodyDef; new (_0: b2BodyDef): b2BodyDef };
        b2BodyEvents: new () => b2BodyEvents;
        b2BodyMoveEvent: {};
        b2BodyType: {
            b2_bodyTypeCount: b2BodyTypeValue<3>;
            b2_dynamicBody: b2BodyTypeValue<2>;
            b2_kinematicBody: b2BodyTypeValue<1>;
            b2_staticBody: b2BodyTypeValue<0>;
        };
        b2Capacity: new () => b2Capacity;
        b2Capsule: new () => b2Capsule;
        b2CastOutput: new () => b2CastOutput;
        b2ChainDef: new () => b2ChainDef;
        b2ChainSegment: new () => b2ChainSegment;
        b2Circle: new () => b2Circle;
        b2CollisionPlane: new () => b2CollisionPlane;
        b2ContactBeginTouchEvent: {};
        b2ContactData: {};
        b2ContactEvents: new () => b2ContactEvents;
        b2ContactHitEvent: {};
        b2CosSin: new () => b2CosSin;
        b2Counters: new () => b2Counters;
        b2DebugDraw: { new (): b2DebugDraw; new (_0: b2DebugDraw): b2DebugDraw };
        b2DistanceInput: new () => b2DistanceInput;
        b2DistanceJointDef: {
            new (): b2DistanceJointDef;
            new (_0: b2DistanceJointDef): b2DistanceJointDef;
        };
        b2DistanceOutput: new () => b2DistanceOutput;
        b2ExplosionDef: new () => b2ExplosionDef;
        b2Filter: new () => b2Filter;
        b2FilterJointDef: {
            new (): b2FilterJointDef;
            new (_0: b2FilterJointDef): b2FilterJointDef;
        };
        b2Hull: new () => b2Hull;
        b2JointDef: new () => b2JointDef;
        b2JointEvent: {};
        b2JointEvents: new () => b2JointEvents;
        b2JointType: {
            b2_distanceJoint: b2JointTypeValue<0>;
            b2_filterJoint: b2JointTypeValue<1>;
            b2_motorJoint: b2JointTypeValue<2>;
            b2_moverJoint: b2JointTypeValue<3>;
            b2_pogoJoint: b2JointTypeValue<4>;
            b2_prismaticJoint: b2JointTypeValue<5>;
            b2_revoluteJoint: b2JointTypeValue<6>;
            b2_weldJoint: b2JointTypeValue<7>;
            b2_wheelJoint: b2JointTypeValue<8>;
        };
        b2Manifold: new () => b2Manifold;
        b2ManifoldPoint: new () => b2ManifoldPoint;
        b2MassData: new () => b2MassData;
        b2Mat22: new () => b2Mat22;
        b2MotionLocks: new () => b2MotionLocks;
        b2MotorJointDef: {
            new (): b2MotorJointDef;
            new (_0: b2MotorJointDef): b2MotorJointDef;
        };
        b2MoverJointDef: {
            new (): b2MoverJointDef;
            new (_0: b2MoverJointDef): b2MoverJointDef;
        };
        b2Plane: new () => b2Plane;
        b2PlaneSolverResult: new () => b2PlaneSolverResult;
        b2PogoJointDef: {
            new (): b2PogoJointDef;
            new (_0: b2PogoJointDef): b2PogoJointDef;
        };
        b2Polygon: { GetMaxVertices(): number; new (): b2Polygon };
        b2Pos_zero: b2Vec2;
        b2PrismaticJointDef: {
            new (): b2PrismaticJointDef;
            new (_0: b2PrismaticJointDef): b2PrismaticJointDef;
        };
        b2Profile: new () => b2Profile;
        b2QueryFilter: new () => b2QueryFilter;
        b2RayCallbackResult: new () => b2RayCallbackResult;
        b2RayCastInput: new () => b2RayCastInput;
        b2RayResult: new () => b2RayResult;
        b2RevoluteJointDef: {
            new (): b2RevoluteJointDef;
            new (_0: b2RevoluteJointDef): b2RevoluteJointDef;
        };
        b2Rot: new () => b2Rot;
        b2Rot_identity: b2Rot;
        b2Segment: new () => b2Segment;
        b2SegmentDistanceResult: new () => b2SegmentDistanceResult;
        b2SensorEvents: new () => b2SensorEvents;
        b2ShapeCastInput: new () => b2ShapeCastInput;
        b2ShapeCastPairInput: new () => b2ShapeCastPairInput;
        b2ShapeDef: new () => b2ShapeDef;
        b2ShapeProxy: new () => b2ShapeProxy;
        b2ShapeType: {
            b2_capsuleShape: b2ShapeTypeValue<1>;
            b2_chainSegmentShape: b2ShapeTypeValue<4>;
            b2_circleShape: b2ShapeTypeValue<0>;
            b2_polygonShape: b2ShapeTypeValue<3>;
            b2_segmentShape: b2ShapeTypeValue<2>;
            b2_shapeTypeCount: b2ShapeTypeValue<5>;
        };
        b2SimplexCache: new () => b2SimplexCache;
        b2SurfaceMaterial: new () => b2SurfaceMaterial;
        b2Transform: new () => b2Transform;
        b2Transform_identity: b2Transform;
        b2Vec2: { new (): b2Vec2; new (_0: number, _1: number): b2Vec2 };
        b2Vec2_zero: b2Vec2;
        b2WeldJointDef: {
            new (): b2WeldJointDef;
            new (_0: b2WeldJointDef): b2WeldJointDef;
        };
        b2WheelJointDef: {
            new (): b2WheelJointDef;
            new (_0: b2WheelJointDef): b2WheelJointDef;
        };
        b2WorldDef: { new (): b2WorldDef; new (_0: b2WorldDef): b2WorldDef };
        b2WorldTransform_identity: b2Transform;
        BasicBodyInterface: {};
        BasicChainInterface: {};
        BasicDistanceJointInterface: {};
        BasicJointInterface: {};
        BasicMotorJointInterface: {};
        BasicMoverJointInterface: {};
        BasicPogoJointInterface: {};
        BasicPrismaticJointInterface: {};
        BasicRevoluteJointInterface: {};
        BasicShapeInterface: {};
        BasicWeldJointInterface: {};
        BasicWheelJointInterface: {};
        BasicWorldInterface: {};
        Body: new () => Body;
        BodyConstRef: {};
        BodyRef: {};
        Chain: new () => Chain;
        ChainConstRef: {};
        ChainRef: {};
        DebugDrawCommandBuffer: {
            new (): DebugDrawCommandBuffer;
            new (_0: number): DebugDrawCommandBuffer;
        };
        DebugDrawCommandType: {
            e_circle: DebugDrawCommandTypeValue<2>;
            e_line: DebugDrawCommandTypeValue<5>;
            e_point: DebugDrawCommandTypeValue<7>;
            e_polygon: DebugDrawCommandTypeValue<0>;
            e_solidCapsule: DebugDrawCommandTypeValue<4>;
            e_solidCircle: DebugDrawCommandTypeValue<3>;
            e_solidPolygon: DebugDrawCommandTypeValue<1>;
            e_string: DebugDrawCommandTypeValue<8>;
            e_transform: DebugDrawCommandTypeValue<6>;
        };
        DistanceJoint: new () => DistanceJoint;
        DistanceJointConstRef: {};
        DistanceJointRef: {};
        Joint: new () => Joint;
        JointConstRef: {};
        JointRef: {};
        MotorJoint: new () => MotorJoint;
        MotorJointConstRef: {};
        MotorJointRef: {};
        MoverJoint: new () => MoverJoint;
        MoverJointConstRef: {};
        MoverJointRef: {};
        PogoJoint: new () => PogoJoint;
        PogoJointConstRef: {};
        PogoJointRef: {};
        PrismaticJoint: new () => PrismaticJoint;
        PrismaticJointConstRef: {};
        PrismaticJointRef: {};
        RevoluteJoint: new () => RevoluteJoint;
        RevoluteJointConstRef: {};
        RevoluteJointRef: {};
        Shape: new () => Shape;
        TaskSystem: new (_0: number) => TaskSystem;
        WeldJoint: new () => WeldJoint;
        WeldJointConstRef: {};
        WeldJointRef: {};
        WheelJoint: new () => WheelJoint;
        WheelJointConstRef: {};
        WheelJointRef: {};
        World: { new (): World; new (_0: b2WorldDef): World };
        WorldConstRef: {};
        WorldRef: {};
        B2_ID_EQUALS(_0: any, _1: any): boolean;
        b2AABB_Center(_0: b2AABB): b2Vec2;
        b2AABB_Contains(_0: b2AABB, _1: b2AABB): boolean;
        b2AABB_Extents(_0: b2AABB): b2Vec2;
        b2AABB_Overlaps(_0: b2AABB, _1: b2AABB): boolean;
        b2AABB_Union(_0: b2AABB, _1: b2AABB): b2AABB;
        b2Abs(_0: b2Vec2): b2Vec2;
        b2AbsFloat(_0: number): number;
        b2AbsInt(_0: number): number;
        b2Add(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2Atan2(_0: number, _1: number): number;
        b2Body_ApplyAngularImpulse(_0: b2BodyId, _1: number, _2: boolean): void;
        b2Body_ApplyForce(_0: b2BodyId, _1: b2Vec2, _2: b2Vec2, _3: boolean): void;
        b2Body_ApplyForceToCenter(_0: b2BodyId, _1: b2Vec2, _2: boolean): void;
        b2Body_ApplyLinearImpulse(
            _0: b2BodyId,
            _1: b2Vec2,
            _2: b2Vec2,
            _3: boolean,
        ): void;
        b2Body_ApplyLinearImpulseToCenter(
            _0: b2BodyId,
            _1: b2Vec2,
            _2: boolean,
        ): void;
        b2Body_ApplyTorque(_0: b2BodyId, _1: number, _2: boolean): void;
        b2Body_ClearForces(_0: b2BodyId): void;
        b2Body_ComputeBounds(_0: b2BodyId): b2AABB;
        b2Body_Disable(_0: b2BodyId): void;
        b2Body_Enable(_0: b2BodyId): void;
        b2Body_EnableContactEvents(_0: b2BodyId, _1: boolean): void;
        b2Body_EnableContactRecycling(_0: b2BodyId, _1: boolean): void;
        b2Body_EnableHitEvents(_0: b2BodyId, _1: boolean): void;
        b2Body_EnableSleeping(_0: b2BodyId, _1: boolean): void;
        b2Body_GetAngularDamping(_0: b2BodyId): number;
        b2Body_GetAngularVelocity(_0: b2BodyId): number;
        b2Body_GetContactCapacity(_0: b2BodyId): number;
        b2Body_GetContactData(_0: b2BodyId, _1: number): any;
        b2Body_GetGravityScale(_0: b2BodyId): number;
        b2Body_GetJointCount(_0: b2BodyId): number;
        b2Body_GetJoints(_0: b2BodyId): any;
        b2Body_GetLinearDamping(_0: b2BodyId): number;
        b2Body_GetLinearVelocity(_0: b2BodyId): b2Vec2;
        b2Body_GetLocalCenter(_0: b2BodyId): b2Vec2;
        b2Body_GetLocalPoint(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_GetLocalPointVelocity(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_GetLocalVector(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_GetMass(_0: b2BodyId): number;
        b2Body_GetMassData(_0: b2BodyId): b2MassData;
        b2Body_GetMaxExtent(_0: b2BodyId): number;
        b2Body_GetMaxExtentFromOrigin(_0: b2BodyId): number;
        b2Body_GetMinExtent(_0: b2BodyId): number;
        b2Body_GetMotionLocks(_0: b2BodyId): b2MotionLocks;
        b2Body_GetName(_0: b2BodyId): string;
        b2Body_GetPointer(_0: b2BodyId): any;
        b2Body_GetPosition(_0: b2BodyId): b2Vec2;
        b2Body_GetRotation(_0: b2BodyId): b2Rot;
        b2Body_GetRotationalInertia(_0: b2BodyId): number;
        b2Body_GetSafetyFactor(_0: b2BodyId): number;
        b2Body_GetShapeCount(_0: b2BodyId): number;
        b2Body_GetShapes(_0: b2BodyId, _1: number): any;
        b2Body_GetSleepThreshold(_0: b2BodyId): number;
        b2Body_GetTransform(_0: b2BodyId): b2Transform;
        b2Body_GetType(_0: b2BodyId): b2BodyType;
        b2Body_GetUserData(_0: b2BodyId): number;
        b2Body_GetWorld(_0: b2BodyId): b2WorldId;
        b2Body_GetWorldCenter(_0: b2BodyId): b2Vec2;
        b2Body_GetWorldPoint(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_GetWorldPointVelocity(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_GetWorldVector(_0: b2BodyId, _1: b2Vec2): b2Vec2;
        b2Body_IsAwake(_0: b2BodyId): boolean;
        b2Body_IsBullet(_0: b2BodyId): boolean;
        b2Body_IsContactRecyclingEnabled(_0: b2BodyId): boolean;
        b2Body_IsEnabled(_0: b2BodyId): boolean;
        b2Body_IsSleepingEnabled(_0: b2BodyId): boolean;
        b2Body_IsValid(_0: b2BodyId): boolean;
        b2Body_SetAngularDamping(_0: b2BodyId, _1: number): void;
        b2Body_SetAngularVelocity(_0: b2BodyId, _1: number): void;
        b2Body_SetAwake(_0: b2BodyId, _1: boolean): void;
        b2Body_SetBullet(_0: b2BodyId, _1: boolean): void;
        b2Body_SetGravityScale(_0: b2BodyId, _1: number): void;
        b2Body_SetLinearDamping(_0: b2BodyId, _1: number): void;
        b2Body_SetLinearVelocity(_0: b2BodyId, _1: b2Vec2): void;
        b2Body_SetMassData(_0: b2BodyId, _1: b2MassData): void;
        b2Body_SetMotionLocks(_0: b2BodyId, _1: b2MotionLocks): void;
        b2Body_SetName(_0: b2BodyId, _1: EmbindString): void;
        b2Body_SetSafetyFactor(_0: b2BodyId, _1: number): void;
        b2Body_SetSleepThreshold(_0: b2BodyId, _1: number): void;
        b2Body_SetTargetTransform(
            _0: b2BodyId,
            _1: b2Transform,
            _2: number,
            _3: boolean,
        ): void;
        b2Body_SetTransform(_0: b2BodyId, _1: b2Vec2, _2: b2Rot): void;
        b2Body_SetType(_0: b2BodyId, _1: b2BodyType): void;
        b2Body_SetUserData(_0: b2BodyId, _1: number): void;
        b2Body_UpdateMassFromShapes(_0: b2BodyId): void;
        b2Body_WakeTouching(_0: b2BodyId): void;
        b2CastRayCapsule(
            _0: b2Capsule | null,
            _1: b2RayCastInput | null,
        ): b2CastOutput;
        b2CastRayCircle(
            _0: b2Circle | null,
            _1: b2RayCastInput | null,
        ): b2CastOutput;
        b2CastRayPolygon(
            _0: b2Polygon | null,
            _1: b2RayCastInput | null,
        ): b2CastOutput;
        b2CastRaySegment(
            _0: b2Segment | null,
            _1: b2RayCastInput | null,
            _2: boolean,
        ): b2CastOutput;
        b2CastShape(_0: b2ShapeCastPairInput | null): b2CastOutput;
        b2CastShapeCapsule(
            _0: b2Capsule | null,
            _1: b2ShapeCastInput | null,
        ): b2CastOutput;
        b2CastShapeCircle(
            _0: b2Circle | null,
            _1: b2ShapeCastInput | null,
        ): b2CastOutput;
        b2CastShapePolygon(
            _0: b2Polygon | null,
            _1: b2ShapeCastInput | null,
        ): b2CastOutput;
        b2CastShapeSegment(
            _0: b2Segment | null,
            _1: b2ShapeCastInput | null,
        ): b2CastOutput;
        b2Chain_GetSegmentCount(_0: b2ChainId): number;
        b2Chain_GetSegments(_0: b2ChainId, _1: number): any;
        b2Chain_GetSurfaceMaterial(_0: b2ChainId, _1: number): b2SurfaceMaterial;
        b2Chain_GetWorld(_0: b2ChainId): b2WorldId;
        b2Chain_IsValid(_0: b2ChainId): boolean;
        b2Chain_SetAllSurfaceMaterials(
            _0: b2ChainId,
            _1: b2SurfaceMaterial | null,
        ): void;
        b2Chain_SetSurfaceMaterial(
            _0: b2ChainId,
            _1: b2SurfaceMaterial | null,
            _2: number,
        ): void;
        b2Clamp(_0: b2Vec2, _1: b2Vec2, _2: b2Vec2): b2Vec2;
        b2ClampFloat(_0: number, _1: number, _2: number): number;
        b2ClampInt(_0: number, _1: number, _2: number): number;
        b2ClipVector(_0: b2Vec2, _1: any): b2Vec2;
        b2ComputeAngularVelocity(_0: b2Rot, _1: b2Rot, _2: number): number;
        b2ComputeCapsuleBounds(_0: b2Capsule | null, _1: b2Transform): b2AABB;
        b2ComputeCapsuleMass(_0: b2Capsule | null, _1: number): b2MassData;
        b2ComputeCircleBounds(_0: b2Circle | null, _1: b2Transform): b2AABB;
        b2ComputeCircleMass(_0: b2Circle | null, _1: number): b2MassData;
        b2ComputeCosSin(_0: number): b2CosSin;
        b2ComputeHull(_0: any): b2Hull;
        b2ComputePolygonBounds(_0: b2Polygon | null, _1: b2Transform): b2AABB;
        b2ComputePolygonMass(_0: b2Polygon | null, _1: number): b2MassData;
        b2ComputeRotationBetweenUnitVectors(_0: b2Vec2, _1: b2Vec2): b2Rot;
        b2ComputeSegmentBounds(_0: b2Segment | null, _1: b2Transform): b2AABB;
        b2ComputeSegmentDistance(
            _0: b2Vec2,
            _1: b2Vec2,
            _2: b2Vec2,
            _3: b2Vec2,
        ): b2SegmentDistanceResult;
        b2ComputeShapeDistance(
            _0: b2DistanceInput,
            _1: b2SimplexCache | null,
        ): b2DistanceOutput;
        b2Contact_GetData(_0: b2ContactId): b2ContactData;
        b2Contact_IsValid(_0: b2ContactId): boolean;
        b2CreateBody(_0: b2WorldId, _1: b2BodyDef | null): b2BodyId;
        b2CreateCapsuleShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2Capsule | null,
        ): b2ShapeId;
        b2CreateChain(_0: b2BodyId, _1: b2ChainDef | null): b2ChainId;
        b2CreateChainSegmentShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2ChainSegment | null,
        ): b2ShapeId;
        b2CreateCircleShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2Circle | null,
        ): b2ShapeId;
        b2CreateDistanceJoint(
            _0: b2WorldId,
            _1: b2DistanceJointDef | null,
        ): b2JointId;
        b2CreateFilterJoint(_0: b2WorldId, _1: b2FilterJointDef | null): b2JointId;
        b2CreateMotorJoint(_0: b2WorldId, _1: b2MotorJointDef | null): b2JointId;
        b2CreateMoverJoint(_0: b2WorldId, _1: b2MoverJointDef | null): b2JointId;
        b2CreatePogoJoint(_0: b2WorldId, _1: b2PogoJointDef | null): b2JointId;
        b2CreatePolygonShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2Polygon | null,
        ): b2ShapeId;
        b2CreatePrismaticJoint(
            _0: b2WorldId,
            _1: b2PrismaticJointDef | null,
        ): b2JointId;
        b2CreateRevoluteJoint(
            _0: b2WorldId,
            _1: b2RevoluteJointDef | null,
        ): b2JointId;
        b2CreateSegmentShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2Segment | null,
        ): b2ShapeId;
        b2CreateThreadedWorld(_0: b2WorldDef, _1: TaskSystem): b2WorldId;
        b2CreateWeldJoint(_0: b2WorldId, _1: b2WeldJointDef | null): b2JointId;
        b2CreateWheelJoint(_0: b2WorldId, _1: b2WheelJointDef | null): b2JointId;
        b2CreateWorld(_0: b2WorldDef | null): b2WorldId;
        b2CreateWorldFromSnapshot(_0: any, _1: number): b2WorldId;
        b2Cross(_0: b2Vec2, _1: b2Vec2): number;
        b2CrossSV(_0: number, _1: b2Vec2): b2Vec2;
        b2CrossVS(_0: b2Vec2, _1: number): b2Vec2;
        b2DefaultBodyDef(): b2BodyDef;
        b2DefaultChainDef(): b2ChainDef;
        b2DefaultDebugDraw(): b2DebugDraw;
        b2DefaultDistanceJointDef(): b2DistanceJointDef;
        b2DefaultExplosionDef(): b2ExplosionDef;
        b2DefaultFilter(): b2Filter;
        b2DefaultFilterJointDef(): b2FilterJointDef;
        b2DefaultMotorJointDef(): b2MotorJointDef;
        b2DefaultMoverJointDef(): b2MoverJointDef;
        b2DefaultPogoJointDef(): b2PogoJointDef;
        b2DefaultPrismaticJointDef(): b2PrismaticJointDef;
        b2DefaultQueryFilter(): b2QueryFilter;
        b2DefaultRevoluteJointDef(): b2RevoluteJointDef;
        b2DefaultShapeDef(): b2ShapeDef;
        b2DefaultSurfaceMaterial(): b2SurfaceMaterial;
        b2DefaultWeldJointDef(): b2WeldJointDef;
        b2DefaultWheelJointDef(): b2WheelJointDef;
        b2DefaultWorldDef(): b2WorldDef;
        b2DestroyBody(_0: b2BodyId): void;
        b2DestroyChain(_0: b2ChainId): void;
        b2DestroyJoint(_0: b2JointId): void;
        b2DestroyShape(_0: b2ShapeId, _1: boolean): void;
        b2DestroyWorld(_0: b2WorldId): void;
        b2Distance(_0: b2Vec2, _1: b2Vec2): number;
        b2DistanceJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
        b2DistanceJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
        b2DistanceJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
        b2DistanceJoint_GetCurrentLength(_0: b2JointId): number;
        b2DistanceJoint_GetCurrentMotorForce(_0: b2JointId): number;
        b2DistanceJoint_GetLowerLimit(_0: b2JointId): number;
        b2DistanceJoint_GetMaxMotorForce(_0: b2JointId): number;
        b2DistanceJoint_GetRestLength(_0: b2JointId): number;
        b2DistanceJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2DistanceJoint_GetSpringForce(_0: b2JointId): number;
        b2DistanceJoint_GetSpringForceRange(_0: b2JointId): any;
        b2DistanceJoint_GetSpringHertz(_0: b2JointId): number;
        b2DistanceJoint_GetTargetMotorSpeed(_0: b2JointId): number;
        b2DistanceJoint_GetUpperLimit(_0: b2JointId): number;
        b2DistanceJoint_IsLimitEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_IsMotorEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_IsSpringEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
        b2DistanceJoint_SetMaxMotorForce(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetRestLength(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetSpringForceRange(
            _0: b2JointId,
            _1: number,
            _2: number,
        ): void;
        b2DistanceJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetTargetMotorSpeed(_0: b2JointId, _1: number): void;
        b2DistanceSquared(_0: b2Vec2, _1: b2Vec2): number;
        b2Dot(_0: b2Vec2, _1: b2Vec2): number;
        b2GetGraphColor(_0: number): number;
        b2GetInverse22(_0: b2Mat22): b2Mat22;
        b2GetLengthAndNormalize(_0: b2Vec2): any;
        b2GetLengthUnitsPerMeter(): number;
        b2Hash(_0: number, _1: any): number;
        b2IntegrateRotation(_0: b2Rot, _1: number): b2Rot;
        b2InvertRot(_0: b2Rot): b2Rot;
        b2InvMulRot(_0: b2Rot, _1: b2Rot): b2Rot;
        b2InvMulTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
        b2InvMulWorldTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
        b2InvRotateVector(_0: b2Rot, _1: b2Vec2): b2Vec2;
        b2InvTransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2InvTransformWorldPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2IsDoublePrecision(): boolean;
        b2IsNormalized(_0: b2Vec2): boolean;
        b2IsNormalizedRot(_0: b2Rot): boolean;
        b2IsValidPlane(_0: b2Plane): boolean;
        b2IsValidRay(_0: b2RayCastInput | null): boolean;
        b2Joint_GetAngularSeparation(_0: b2JointId): number;
        b2Joint_GetBodyA(_0: b2JointId): b2BodyId;
        b2Joint_GetBodyB(_0: b2JointId): b2BodyId;
        b2Joint_GetCollideConnected(_0: b2JointId): boolean;
        b2Joint_GetConstraintForce(_0: b2JointId): b2Vec2;
        b2Joint_GetConstraintTorque(_0: b2JointId): number;
        b2Joint_GetConstraintTuning(_0: b2JointId): any;
        b2Joint_GetForceThreshold(_0: b2JointId): number;
        b2Joint_GetLinearSeparation(_0: b2JointId): number;
        b2Joint_GetLocalFrameA(_0: b2JointId): b2Transform;
        b2Joint_GetLocalFrameB(_0: b2JointId): b2Transform;
        b2Joint_GetPointer(_0: b2JointId): any;
        b2Joint_GetTorqueThreshold(_0: b2JointId): number;
        b2Joint_GetType(_0: b2JointId): b2JointType;
        b2Joint_GetUserData(_0: b2JointId): number;
        b2Joint_GetWorld(_0: b2JointId): b2WorldId;
        b2Joint_IsValid(_0: b2JointId): boolean;
        b2Joint_SetCollideConnected(_0: b2JointId, _1: boolean): void;
        b2Joint_SetConstraintTuning(_0: b2JointId, _1: number, _2: number): void;
        b2Joint_SetForceThreshold(_0: b2JointId, _1: number): void;
        b2Joint_SetLocalFrameA(_0: b2JointId, _1: b2Transform): void;
        b2Joint_SetLocalFrameB(_0: b2JointId, _1: b2Transform): void;
        b2Joint_SetTorqueThreshold(_0: b2JointId, _1: number): void;
        b2Joint_SetUserData(_0: b2JointId, _1: number): void;
        b2Joint_WakeBodies(_0: b2JointId): void;
        b2LeftPerp(_0: b2Vec2): b2Vec2;
        b2Length(_0: b2Vec2): number;
        b2LengthSquared(_0: b2Vec2): number;
        b2Lerp(_0: b2Vec2, _1: b2Vec2, _2: number): b2Vec2;
        b2LerpPos(_0: b2Vec2, _1: b2Vec2, _2: number): b2Vec2;
        b2LoadBodyId(_0: bigint): b2BodyId;
        b2LoadChainId(_0: bigint): b2ChainId;
        b2LoadJointId(_0: bigint): b2JointId;
        b2LoadShapeId(_0: bigint): b2ShapeId;
        b2LoadWorldId(_0: number): b2WorldId;
        b2MakeAABB(_0: any, _1: number): b2AABB;
        b2MakeBox(_0: number, _1: number): b2Polygon;
        b2MakeOffsetBox(_0: number, _1: number, _2: b2Vec2, _3: b2Rot): b2Polygon;
        b2MakeOffsetPolygon(_0: b2Hull | null, _1: b2Vec2, _2: b2Rot): b2Polygon;
        b2MakeOffsetProxy(
            _0: b2Vec2 | null,
            _1: number,
            _2: number,
            _3: b2Vec2,
            _4: b2Rot,
        ): b2ShapeProxy;
        b2MakeOffsetRoundedBox(
            _0: number,
            _1: number,
            _2: b2Vec2,
            _3: b2Rot,
            _4: number,
        ): b2Polygon;
        b2MakeOffsetRoundedPolygon(
            _0: b2Hull | null,
            _1: b2Vec2,
            _2: b2Rot,
            _3: number,
        ): b2Polygon;
        b2MakePolygon(_0: b2Hull | null, _1: number): b2Polygon;
        b2MakeProxy(_0: b2Vec2 | null, _1: number, _2: number): b2ShapeProxy;
        b2MakeRot(_0: number): b2Rot;
        b2MakeRotFromUnitVector(_0: b2Vec2): b2Rot;
        b2MakeRoundedBox(_0: number, _1: number, _2: number): b2Polygon;
        b2MakeSquare(_0: number): b2Polygon;
        b2MakeWorldTransform(_0: b2Transform): b2Transform;
        b2Max(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2MaxFloat(_0: number, _1: number): number;
        b2MaxInt(_0: number, _1: number): number;
        b2Min(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2MinFloat(_0: number, _1: number): number;
        b2MinInt(_0: number, _1: number): number;
        b2MotorJoint_GetAngularDampingRatio(_0: b2JointId): number;
        b2MotorJoint_GetAngularHertz(_0: b2JointId): number;
        b2MotorJoint_GetAngularVelocity(_0: b2JointId): number;
        b2MotorJoint_GetLinearDampingRatio(_0: b2JointId): number;
        b2MotorJoint_GetLinearHertz(_0: b2JointId): number;
        b2MotorJoint_GetLinearVelocity(_0: b2JointId): b2Vec2;
        b2MotorJoint_GetMaxSpringForce(_0: b2JointId): number;
        b2MotorJoint_GetMaxSpringTorque(_0: b2JointId): number;
        b2MotorJoint_GetMaxVelocityForce(_0: b2JointId): number;
        b2MotorJoint_GetMaxVelocityTorque(_0: b2JointId): number;
        b2MotorJoint_SetAngularDampingRatio(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetAngularHertz(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetAngularVelocity(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetLinearDampingRatio(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetLinearHertz(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetLinearVelocity(_0: b2JointId, _1: b2Vec2): void;
        b2MotorJoint_SetMaxSpringForce(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetMaxSpringTorque(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetMaxVelocityForce(_0: b2JointId, _1: number): void;
        b2MotorJoint_SetMaxVelocityTorque(_0: b2JointId, _1: number): void;
        b2MoverJoint_GetLinearVelocity(_0: b2JointId): b2Vec2;
        b2MoverJoint_GetMaxVelocityForce(_0: b2JointId): b2Vec2;
        b2MoverJoint_SetLinearVelocity(_0: b2JointId, _1: b2Vec2): void;
        b2MoverJoint_SetMaxVelocityForce(_0: b2JointId, _1: b2Vec2): void;
        b2Mul(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2MulAdd(_0: b2Vec2, _1: number, _2: b2Vec2): b2Vec2;
        b2MulMV(_0: b2Mat22, _1: b2Vec2): b2Vec2;
        b2MulRot(_0: b2Rot, _1: b2Rot): b2Rot;
        b2MulSub(_0: b2Vec2, _1: number, _2: b2Vec2): b2Vec2;
        b2MulSV(_0: number, _1: b2Vec2): b2Vec2;
        b2MulTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
        b2MulWorldTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
        b2Neg(_0: b2Vec2): b2Vec2;
        b2NLerp(_0: b2Rot, _1: b2Rot, _2: number): b2Rot;
        b2Normalize(_0: b2Vec2): b2Vec2;
        b2NormalizeRot(_0: b2Rot): b2Rot;
        b2OffsetPos(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2PlaneSeparation(_0: b2Plane, _1: b2Vec2): number;
        b2PogoJoint_GetCurrentLength(_0: b2JointId): number;
        b2PogoJoint_GetCurrentSpeed(_0: b2JointId): number;
        b2PogoJoint_GetImpulse(_0: b2JointId): number;
        b2PogoJoint_GetRestLength(_0: b2JointId): number;
        b2PogoJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2PogoJoint_GetSpringHertz(_0: b2JointId): number;
        b2PogoJoint_SetRestLength(_0: b2JointId, _1: number): void;
        b2PogoJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2PogoJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2PointInCapsule(_0: b2Capsule | null, _1: b2Vec2): boolean;
        b2PointInCircle(_0: b2Circle | null, _1: b2Vec2): boolean;
        b2PointInPolygon(_0: b2Polygon | null, _1: b2Vec2): boolean;
        b2PrismaticJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
        b2PrismaticJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
        b2PrismaticJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
        b2PrismaticJoint_GetCurrentMotorForce(_0: b2JointId): number;
        b2PrismaticJoint_GetCurrentSpeed(_0: b2JointId): number;
        b2PrismaticJoint_GetCurrentTranslation(_0: b2JointId): number;
        b2PrismaticJoint_GetLowerLimit(_0: b2JointId): number;
        b2PrismaticJoint_GetMaxMotorForce(_0: b2JointId): number;
        b2PrismaticJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2PrismaticJoint_GetSpringHertz(_0: b2JointId): number;
        b2PrismaticJoint_GetTargetMotorSpeed(_0: b2JointId): number;
        b2PrismaticJoint_GetTargetTranslation(_0: b2JointId): number;
        b2PrismaticJoint_GetUpperLimit(_0: b2JointId): number;
        b2PrismaticJoint_IsLimitEnabled(_0: b2JointId): boolean;
        b2PrismaticJoint_IsMotorEnabled(_0: b2JointId): boolean;
        b2PrismaticJoint_IsSpringEnabled(_0: b2JointId): boolean;
        b2PrismaticJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
        b2PrismaticJoint_SetMaxMotorForce(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetTargetMotorSpeed(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetTargetTranslation(_0: b2JointId, _1: number): void;
        b2RelativeAngle(_0: b2Rot, _1: b2Rot): number;
        b2RevoluteJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
        b2RevoluteJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
        b2RevoluteJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
        b2RevoluteJoint_GetCurrentAngle(_0: b2JointId): number;
        b2RevoluteJoint_GetCurrentMotorTorque(_0: b2JointId): number;
        b2RevoluteJoint_GetCurrentSpeed(_0: b2JointId): number;
        b2RevoluteJoint_GetLowerLimit(_0: b2JointId): number;
        b2RevoluteJoint_GetMaxMotorTorque(_0: b2JointId): number;
        b2RevoluteJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2RevoluteJoint_GetSpringHertz(_0: b2JointId): number;
        b2RevoluteJoint_GetTargetAngle(_0: b2JointId): number;
        b2RevoluteJoint_GetTargetMotorSpeed(_0: b2JointId): number;
        b2RevoluteJoint_GetUpperLimit(_0: b2JointId): number;
        b2RevoluteJoint_IsLimitEnabled(_0: b2JointId): boolean;
        b2RevoluteJoint_IsMotorEnabled(_0: b2JointId): boolean;
        b2RevoluteJoint_IsSpringEnabled(_0: b2JointId): boolean;
        b2RevoluteJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
        b2RevoluteJoint_SetMaxMotorTorque(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetTargetAngle(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetTargetMotorSpeed(_0: b2JointId, _1: number): void;
        b2RightPerp(_0: b2Vec2): b2Vec2;
        b2Rot_GetAngle(_0: b2Rot): number;
        b2Rot_GetXAxis(_0: b2Rot): b2Vec2;
        b2Rot_GetYAxis(_0: b2Rot): b2Vec2;
        b2RotateVector(_0: b2Rot, _1: b2Vec2): b2Vec2;
        b2RoundDownFloat(_0: number): number;
        b2RoundUpFloat(_0: number): number;
        b2SetLengthUnitsPerMeter(_0: number): void;
        b2Shape_ApplyWind(
            _0: b2ShapeId,
            _1: b2Vec2,
            _2: number,
            _3: number,
            _4: boolean,
        ): void;
        b2Shape_AreContactEventsEnabled(_0: b2ShapeId): boolean;
        b2Shape_AreHitEventsEnabled(_0: b2ShapeId): boolean;
        b2Shape_ArePreSolveEventsEnabled(_0: b2ShapeId): boolean;
        b2Shape_AreSensorEventsEnabled(_0: b2ShapeId): boolean;
        b2Shape_CastRay(_0: b2ShapeId, _1: b2Vec2, _2: b2Vec2): b2CastOutput;
        b2Shape_ComputeMassData(_0: b2ShapeId): b2MassData;
        b2Shape_EnableContactEvents(_0: b2ShapeId, _1: boolean): void;
        b2Shape_EnableHitEvents(_0: b2ShapeId, _1: boolean): void;
        b2Shape_EnablePreSolveEvents(_0: b2ShapeId, _1: boolean): void;
        b2Shape_EnableSensorEvents(_0: b2ShapeId, _1: boolean): void;
        b2Shape_GetBody(_0: b2ShapeId): b2BodyId;
        b2Shape_GetBounds(_0: b2ShapeId): b2AABB;
        b2Shape_GetCapsule(_0: b2ShapeId): b2Capsule;
        b2Shape_GetChainSegment(_0: b2ShapeId): b2ChainSegment;
        b2Shape_GetCircle(_0: b2ShapeId): b2Circle;
        b2Shape_GetClosestPoint(_0: b2ShapeId, _1: b2Vec2): b2Vec2;
        b2Shape_GetContactCapacity(_0: b2ShapeId): number;
        b2Shape_GetContactData(_0: b2ShapeId, _1: number): any;
        b2Shape_GetDensity(_0: b2ShapeId): number;
        b2Shape_GetFilter(_0: b2ShapeId): b2Filter;
        b2Shape_GetFriction(_0: b2ShapeId): number;
        b2Shape_GetParentChain(_0: b2ShapeId): b2ChainId;
        b2Shape_GetPointer(_0: b2ShapeId): any;
        b2Shape_GetPolygon(_0: b2ShapeId): b2Polygon;
        b2Shape_GetRestitution(_0: b2ShapeId): number;
        b2Shape_GetSegment(_0: b2ShapeId): b2Segment;
        b2Shape_GetSensorCapacity(_0: b2ShapeId): number;
        b2Shape_GetSensorData(_0: b2ShapeId, _1: number): any;
        b2Shape_GetSurfaceMaterial(_0: b2ShapeId): b2SurfaceMaterial;
        b2Shape_GetType(_0: b2ShapeId): b2ShapeType;
        b2Shape_GetUserData(_0: b2ShapeId): number;
        b2Shape_GetUserMaterial(_0: b2ShapeId): bigint;
        b2Shape_GetWorld(_0: b2ShapeId): b2WorldId;
        b2Shape_IsSensor(_0: b2ShapeId): boolean;
        b2Shape_IsValid(_0: b2ShapeId): boolean;
        b2Shape_SetCapsule(_0: b2ShapeId, _1: b2Capsule | null): void;
        b2Shape_SetChainSegment(_0: b2ShapeId, _1: b2ChainSegment | null): void;
        b2Shape_SetCircle(_0: b2ShapeId, _1: b2Circle | null): void;
        b2Shape_SetDensity(_0: b2ShapeId, _1: number, _2: boolean): void;
        b2Shape_SetFilter(_0: b2ShapeId, _1: b2Filter): void;
        b2Shape_SetFriction(_0: b2ShapeId, _1: number): void;
        b2Shape_SetPolygon(_0: b2ShapeId, _1: b2Polygon | null): void;
        b2Shape_SetRestitution(_0: b2ShapeId, _1: number): void;
        b2Shape_SetSegment(_0: b2ShapeId, _1: b2Segment | null): void;
        b2Shape_SetSurfaceMaterial(
            _0: b2ShapeId,
            _1: b2SurfaceMaterial | null,
        ): void;
        b2Shape_SetUserData(_0: b2ShapeId, _1: number): void;
        b2Shape_SetUserMaterial(_0: b2ShapeId, _1: bigint): void;
        b2Shape_TestPoint(_0: b2ShapeId, _1: b2Vec2): boolean;
        b2Solve22(_0: b2Mat22, _1: b2Vec2): b2Vec2;
        b2SolvePlanes(_0: b2Vec2, _1: any): b2PlaneSolverResult;
        b2SpringDamper(
            _0: number,
            _1: number,
            _2: number,
            _3: number,
            _4: number,
        ): number;
        b2StoreBodyId(_0: b2BodyId): bigint;
        b2StoreChainId(_0: b2ChainId): bigint;
        b2StoreJointId(_0: b2JointId): bigint;
        b2StoreShapeId(_0: b2ShapeId): bigint;
        b2StoreWorldId(_0: b2WorldId): number;
        b2Sub(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2SubPos(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2ToPos(_0: b2Vec2): b2Vec2;
        b2ToRelativeTransform(_0: b2Transform, _1: b2Vec2): b2Transform;
        b2ToVec2(_0: b2Vec2): b2Vec2;
        b2TransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2TransformPolygon(_0: b2Transform, _1: b2Polygon | null): b2Polygon;
        b2TransformWorldPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2UnwindAngle(_0: number): number;
        b2WeldJoint_GetAngularDampingRatio(_0: b2JointId): number;
        b2WeldJoint_GetAngularHertz(_0: b2JointId): number;
        b2WeldJoint_GetLinearDampingRatio(_0: b2JointId): number;
        b2WeldJoint_GetLinearHertz(_0: b2JointId): number;
        b2WeldJoint_SetAngularDampingRatio(_0: b2JointId, _1: number): void;
        b2WeldJoint_SetAngularHertz(_0: b2JointId, _1: number): void;
        b2WeldJoint_SetLinearDampingRatio(_0: b2JointId, _1: number): void;
        b2WeldJoint_SetLinearHertz(_0: b2JointId, _1: number): void;
        b2WheelJoint_EnableLimit(_0: b2JointId, _1: boolean): void;
        b2WheelJoint_EnableMotor(_0: b2JointId, _1: boolean): void;
        b2WheelJoint_EnableSpring(_0: b2JointId, _1: boolean): void;
        b2WheelJoint_GetCurrentMotorTorque(_0: b2JointId): number;
        b2WheelJoint_GetLowerLimit(_0: b2JointId): number;
        b2WheelJoint_GetMaxMotorTorque(_0: b2JointId): number;
        b2WheelJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2WheelJoint_GetSpringHertz(_0: b2JointId): number;
        b2WheelJoint_GetTargetMotorSpeed(_0: b2JointId): number;
        b2WheelJoint_GetUpperLimit(_0: b2JointId): number;
        b2WheelJoint_IsLimitEnabled(_0: b2JointId): boolean;
        b2WheelJoint_IsMotorEnabled(_0: b2JointId): boolean;
        b2WheelJoint_IsSpringEnabled(_0: b2JointId): boolean;
        b2WheelJoint_SetLimits(_0: b2JointId, _1: number, _2: number): void;
        b2WheelJoint_SetMaxMotorTorque(_0: b2JointId, _1: number): void;
        b2WheelJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2WheelJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2WheelJoint_SetTargetMotorSpeed(_0: b2JointId, _1: number): void;
        b2World_CastMover(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2Capsule | null,
            _3: b2Vec2,
            _4: b2QueryFilter,
        ): number;
        b2World_CastRay(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2Vec2,
            _3: b2QueryFilter,
            _4: any,
        ): b2TreeStats;
        b2World_CastRayClosest(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2Vec2,
            _3: b2QueryFilter,
        ): b2RayResult;
        b2World_CastShape(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2ShapeProxy | null,
            _3: b2Vec2,
            _4: b2QueryFilter,
            _5: any,
        ): b2TreeStats;
        b2World_CollideMover(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2Capsule | null,
            _3: b2QueryFilter,
            _4: any,
        ): void;
        b2World_DeleteCallback(_0: number): void;
        b2World_Draw(_0: b2WorldId, _1: b2DebugDraw | null): void;
        b2World_EnableContinuous(_0: b2WorldId, _1: boolean): void;
        b2World_EnableRestitutionPropagation(_0: b2WorldId, _1: boolean): void;
        b2World_EnableSleeping(_0: b2WorldId, _1: boolean): void;
        b2World_EnableWarmStarting(_0: b2WorldId, _1: boolean): void;
        b2World_Explode(_0: b2WorldId, _1: b2ExplosionDef | null): void;
        b2World_GetAwakeBodyCount(_0: b2WorldId): number;
        b2World_GetBodyEvents(_0: b2WorldId): b2BodyEvents;
        b2World_GetBounds(_0: b2WorldId): b2AABB;
        b2World_GetContactEvents(_0: b2WorldId): b2ContactEvents;
        b2World_GetContactRecycleDistance(_0: b2WorldId): number;
        b2World_GetContactTuning(_0: b2WorldId): any;
        b2World_GetCounters(_0: b2WorldId): b2Counters;
        b2World_GetGravity(_0: b2WorldId): b2Vec2;
        b2World_GetHitEventThreshold(_0: b2WorldId): number;
        b2World_GetJointEvents(_0: b2WorldId): b2JointEvents;
        b2World_GetMaxCapacity(_0: b2WorldId): b2Capacity;
        b2World_GetMaxLinearSpeed(_0: b2WorldId): number;
        b2World_GetPointer(_0: b2WorldId): any;
        b2World_GetProfile(_0: b2WorldId): b2Profile;
        b2World_GetRestitutionIterations(_0: b2WorldId): number;
        b2World_GetRestitutionThreshold(_0: b2WorldId): number;
        b2World_GetSensorEvents(_0: b2WorldId): b2SensorEvents;
        b2World_GetSnapshot(_0: b2WorldId): any;
        b2World_GetStateHash(_0: b2WorldId): bigint;
        b2World_GetWorkerCount(_0: b2WorldId): number;
        b2World_IsContinuousEnabled(_0: b2WorldId): boolean;
        b2World_IsRestitutionPropagationEnabled(_0: b2WorldId): boolean;
        b2World_IsSleepingEnabled(_0: b2WorldId): boolean;
        b2World_IsValid(_0: b2WorldId): boolean;
        b2World_IsWarmStartingEnabled(_0: b2WorldId): boolean;
        b2World_OverlapAABB(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2AABB,
            _3: b2QueryFilter,
            _4: any,
        ): b2TreeStats;
        b2World_OverlapShape(
            _0: b2WorldId,
            _1: b2Vec2,
            _2: b2ShapeProxy | null,
            _3: b2QueryFilter,
            _4: any,
        ): b2TreeStats;
        b2World_RebuildStaticTree(_0: b2WorldId): void;
        b2World_RestoreFromSnapshot(_0: b2WorldId, _1: any): boolean;
        b2World_SetContactRecycleDistance(_0: b2WorldId, _1: number): void;
        b2World_SetContactTuning(
            _0: b2WorldId,
            _1: number,
            _2: number,
            _3: number,
        ): void;
        b2World_SetCustomFilterCallback(_0: b2WorldId, _1: any): number;
        b2World_SetFrictionCallback(_0: b2WorldId, _1: any): void;
        b2World_SetGravity(_0: b2WorldId, _1: b2Vec2): void;
        b2World_SetHitEventThreshold(_0: b2WorldId, _1: number): void;
        b2World_SetMaxLinearSpeed(_0: b2WorldId, _1: number): void;
        b2World_SetPreSolveCallback(_0: b2WorldId, _1: any, _2: any): number;
        b2World_SetRestitutionCallback(_0: b2WorldId, _1: any): void;
        b2World_SetRestitutionIterations(_0: b2WorldId, _1: number): void;
        b2World_SetRestitutionThreshold(_0: b2WorldId, _1: number): void;
        b2World_SetWorkerCount(_0: b2WorldId, _1: number): void;
        b2World_Step(_0: b2WorldId, _1: number, _2: number): void;
        GetMemoryStats(): MemoryStats;
        GetRandomSeed(): number;
        RandomFloat(): number;
        RandomFloatRange(_0: number, _1: number): number;
        RandomInt(): number;
        RandomIntRange(_0: number, _1: number): number;
        RandomPolygon(_0: number): b2Polygon;
        RandomVec2(_0: number, _1: number): b2Vec2;
        SetRandomSeed(_0: number): void;
    }
    Index
    B2_GRAPH_COLOR_COUNT B2_HASH_INIT B2_PI b2AABB b2BodyDef b2BodyEvents b2BodyMoveEvent b2BodyType b2Capacity b2Capsule b2CastOutput b2ChainDef b2ChainSegment b2Circle b2CollisionPlane b2ContactBeginTouchEvent b2ContactData b2ContactEvents b2ContactHitEvent b2CosSin b2Counters b2DebugDraw b2DistanceInput b2DistanceJointDef b2DistanceOutput b2ExplosionDef b2Filter b2FilterJointDef b2Hull b2JointDef b2JointEvent b2JointEvents b2JointType b2Manifold b2ManifoldPoint b2MassData b2Mat22 b2MotionLocks b2MotorJointDef b2MoverJointDef b2Plane b2PlaneSolverResult b2PogoJointDef b2Polygon b2Pos_zero b2PrismaticJointDef b2Profile b2QueryFilter b2RayCallbackResult b2RayCastInput b2RayResult b2RevoluteJointDef b2Rot b2Rot_identity b2Segment b2SegmentDistanceResult b2SensorEvents b2ShapeCastInput b2ShapeCastPairInput b2ShapeDef b2ShapeProxy b2ShapeType b2SimplexCache b2SurfaceMaterial b2Transform b2Transform_identity b2Vec2 b2Vec2_zero b2WeldJointDef b2WheelJointDef b2WorldDef b2WorldTransform_identity BasicBodyInterface BasicChainInterface BasicDistanceJointInterface BasicJointInterface BasicMotorJointInterface BasicMoverJointInterface BasicPogoJointInterface BasicPrismaticJointInterface BasicRevoluteJointInterface BasicShapeInterface BasicWeldJointInterface BasicWheelJointInterface BasicWorldInterface Body BodyConstRef BodyRef Chain ChainConstRef ChainRef DebugDrawCommandBuffer DebugDrawCommandType DistanceJoint DistanceJointConstRef DistanceJointRef Joint JointConstRef JointRef MotorJoint MotorJointConstRef MotorJointRef MoverJoint MoverJointConstRef MoverJointRef PogoJoint PogoJointConstRef PogoJointRef PrismaticJoint PrismaticJointConstRef PrismaticJointRef RevoluteJoint RevoluteJointConstRef RevoluteJointRef Shape TaskSystem WeldJoint WeldJointConstRef WeldJointRef WheelJoint WheelJointConstRef WheelJointRef World WorldConstRef WorldRef
    B2_ID_EQUALS b2AABB_Center b2AABB_Contains b2AABB_Extents b2AABB_Overlaps b2AABB_Union b2Abs b2AbsFloat b2AbsInt b2Add b2Atan2 b2Body_ApplyAngularImpulse b2Body_ApplyForce b2Body_ApplyForceToCenter b2Body_ApplyLinearImpulse b2Body_ApplyLinearImpulseToCenter b2Body_ApplyTorque b2Body_ClearForces b2Body_ComputeBounds b2Body_Disable b2Body_Enable b2Body_EnableContactEvents b2Body_EnableContactRecycling b2Body_EnableHitEvents b2Body_EnableSleeping b2Body_GetAngularDamping b2Body_GetAngularVelocity b2Body_GetContactCapacity b2Body_GetContactData b2Body_GetGravityScale b2Body_GetJointCount b2Body_GetJoints b2Body_GetLinearDamping b2Body_GetLinearVelocity b2Body_GetLocalCenter b2Body_GetLocalPoint b2Body_GetLocalPointVelocity b2Body_GetLocalVector b2Body_GetMass b2Body_GetMassData b2Body_GetMaxExtent b2Body_GetMaxExtentFromOrigin b2Body_GetMinExtent b2Body_GetMotionLocks b2Body_GetName b2Body_GetPointer b2Body_GetPosition b2Body_GetRotation b2Body_GetRotationalInertia b2Body_GetSafetyFactor b2Body_GetShapeCount b2Body_GetShapes b2Body_GetSleepThreshold b2Body_GetTransform b2Body_GetType b2Body_GetUserData b2Body_GetWorld b2Body_GetWorldCenter b2Body_GetWorldPoint b2Body_GetWorldPointVelocity b2Body_GetWorldVector b2Body_IsAwake b2Body_IsBullet b2Body_IsContactRecyclingEnabled b2Body_IsEnabled b2Body_IsSleepingEnabled b2Body_IsValid b2Body_SetAngularDamping b2Body_SetAngularVelocity b2Body_SetAwake b2Body_SetBullet b2Body_SetGravityScale b2Body_SetLinearDamping b2Body_SetLinearVelocity b2Body_SetMassData b2Body_SetMotionLocks b2Body_SetName b2Body_SetSafetyFactor b2Body_SetSleepThreshold b2Body_SetTargetTransform b2Body_SetTransform b2Body_SetType b2Body_SetUserData b2Body_UpdateMassFromShapes b2Body_WakeTouching b2CastRayCapsule b2CastRayCircle b2CastRayPolygon b2CastRaySegment b2CastShape b2CastShapeCapsule b2CastShapeCircle b2CastShapePolygon b2CastShapeSegment b2Chain_GetSegmentCount b2Chain_GetSegments b2Chain_GetSurfaceMaterial b2Chain_GetWorld b2Chain_IsValid b2Chain_SetAllSurfaceMaterials b2Chain_SetSurfaceMaterial b2Clamp b2ClampFloat b2ClampInt b2ClipVector b2ComputeAngularVelocity b2ComputeCapsuleBounds b2ComputeCapsuleMass b2ComputeCircleBounds b2ComputeCircleMass b2ComputeCosSin b2ComputeHull b2ComputePolygonBounds b2ComputePolygonMass b2ComputeRotationBetweenUnitVectors b2ComputeSegmentBounds b2ComputeSegmentDistance b2ComputeShapeDistance b2Contact_GetData b2Contact_IsValid b2CreateBody b2CreateCapsuleShape b2CreateChain b2CreateChainSegmentShape b2CreateCircleShape b2CreateDistanceJoint b2CreateFilterJoint b2CreateMotorJoint b2CreateMoverJoint b2CreatePogoJoint b2CreatePolygonShape b2CreatePrismaticJoint b2CreateRevoluteJoint b2CreateSegmentShape b2CreateThreadedWorld b2CreateWeldJoint b2CreateWheelJoint b2CreateWorld b2CreateWorldFromSnapshot b2Cross b2CrossSV b2CrossVS b2DefaultBodyDef b2DefaultChainDef b2DefaultDebugDraw b2DefaultDistanceJointDef b2DefaultExplosionDef b2DefaultFilter b2DefaultFilterJointDef b2DefaultMotorJointDef b2DefaultMoverJointDef b2DefaultPogoJointDef b2DefaultPrismaticJointDef b2DefaultQueryFilter b2DefaultRevoluteJointDef b2DefaultShapeDef b2DefaultSurfaceMaterial b2DefaultWeldJointDef b2DefaultWheelJointDef b2DefaultWorldDef b2DestroyBody b2DestroyChain b2DestroyJoint b2DestroyShape b2DestroyWorld b2Distance b2DistanceJoint_EnableLimit b2DistanceJoint_EnableMotor b2DistanceJoint_EnableSpring b2DistanceJoint_GetCurrentLength b2DistanceJoint_GetCurrentMotorForce b2DistanceJoint_GetLowerLimit b2DistanceJoint_GetMaxMotorForce b2DistanceJoint_GetRestLength b2DistanceJoint_GetSpringDampingRatio b2DistanceJoint_GetSpringForce b2DistanceJoint_GetSpringForceRange b2DistanceJoint_GetSpringHertz b2DistanceJoint_GetTargetMotorSpeed b2DistanceJoint_GetUpperLimit b2DistanceJoint_IsLimitEnabled b2DistanceJoint_IsMotorEnabled b2DistanceJoint_IsSpringEnabled b2DistanceJoint_SetLimits b2DistanceJoint_SetMaxMotorForce b2DistanceJoint_SetRestLength b2DistanceJoint_SetSpringDampingRatio b2DistanceJoint_SetSpringForceRange b2DistanceJoint_SetSpringHertz b2DistanceJoint_SetTargetMotorSpeed b2DistanceSquared b2Dot b2GetGraphColor b2GetInverse22 b2GetLengthAndNormalize b2GetLengthUnitsPerMeter b2Hash b2IntegrateRotation b2InvertRot b2InvMulRot b2InvMulTransforms b2InvMulWorldTransforms b2InvRotateVector b2InvTransformPoint b2InvTransformWorldPoint b2IsDoublePrecision b2IsNormalized b2IsNormalizedRot b2IsValidPlane b2IsValidRay b2Joint_GetAngularSeparation b2Joint_GetBodyA b2Joint_GetBodyB b2Joint_GetCollideConnected b2Joint_GetConstraintForce b2Joint_GetConstraintTorque b2Joint_GetConstraintTuning b2Joint_GetForceThreshold b2Joint_GetLinearSeparation b2Joint_GetLocalFrameA b2Joint_GetLocalFrameB b2Joint_GetPointer b2Joint_GetTorqueThreshold b2Joint_GetType b2Joint_GetUserData b2Joint_GetWorld b2Joint_IsValid b2Joint_SetCollideConnected b2Joint_SetConstraintTuning b2Joint_SetForceThreshold b2Joint_SetLocalFrameA b2Joint_SetLocalFrameB b2Joint_SetTorqueThreshold b2Joint_SetUserData b2Joint_WakeBodies b2LeftPerp b2Length b2LengthSquared b2Lerp b2LerpPos b2LoadBodyId b2LoadChainId b2LoadJointId b2LoadShapeId b2LoadWorldId b2MakeAABB b2MakeBox b2MakeOffsetBox b2MakeOffsetPolygon b2MakeOffsetProxy b2MakeOffsetRoundedBox b2MakeOffsetRoundedPolygon b2MakePolygon b2MakeProxy b2MakeRot b2MakeRotFromUnitVector b2MakeRoundedBox b2MakeSquare b2MakeWorldTransform b2Max b2MaxFloat b2MaxInt b2Min b2MinFloat b2MinInt b2MotorJoint_GetAngularDampingRatio b2MotorJoint_GetAngularHertz b2MotorJoint_GetAngularVelocity b2MotorJoint_GetLinearDampingRatio b2MotorJoint_GetLinearHertz b2MotorJoint_GetLinearVelocity b2MotorJoint_GetMaxSpringForce b2MotorJoint_GetMaxSpringTorque b2MotorJoint_GetMaxVelocityForce b2MotorJoint_GetMaxVelocityTorque b2MotorJoint_SetAngularDampingRatio b2MotorJoint_SetAngularHertz b2MotorJoint_SetAngularVelocity b2MotorJoint_SetLinearDampingRatio b2MotorJoint_SetLinearHertz b2MotorJoint_SetLinearVelocity b2MotorJoint_SetMaxSpringForce b2MotorJoint_SetMaxSpringTorque b2MotorJoint_SetMaxVelocityForce b2MotorJoint_SetMaxVelocityTorque b2MoverJoint_GetLinearVelocity b2MoverJoint_GetMaxVelocityForce b2MoverJoint_SetLinearVelocity b2MoverJoint_SetMaxVelocityForce b2Mul b2MulAdd b2MulMV b2MulRot b2MulSub b2MulSV b2MulTransforms b2MulWorldTransforms b2Neg b2NLerp b2Normalize b2NormalizeRot b2OffsetPos b2PlaneSeparation b2PogoJoint_GetCurrentLength b2PogoJoint_GetCurrentSpeed b2PogoJoint_GetImpulse b2PogoJoint_GetRestLength b2PogoJoint_GetSpringDampingRatio b2PogoJoint_GetSpringHertz b2PogoJoint_SetRestLength b2PogoJoint_SetSpringDampingRatio b2PogoJoint_SetSpringHertz b2PointInCapsule b2PointInCircle b2PointInPolygon b2PrismaticJoint_EnableLimit b2PrismaticJoint_EnableMotor b2PrismaticJoint_EnableSpring b2PrismaticJoint_GetCurrentMotorForce b2PrismaticJoint_GetCurrentSpeed b2PrismaticJoint_GetCurrentTranslation b2PrismaticJoint_GetLowerLimit b2PrismaticJoint_GetMaxMotorForce b2PrismaticJoint_GetSpringDampingRatio b2PrismaticJoint_GetSpringHertz b2PrismaticJoint_GetTargetMotorSpeed b2PrismaticJoint_GetTargetTranslation b2PrismaticJoint_GetUpperLimit b2PrismaticJoint_IsLimitEnabled b2PrismaticJoint_IsMotorEnabled b2PrismaticJoint_IsSpringEnabled b2PrismaticJoint_SetLimits b2PrismaticJoint_SetMaxMotorForce b2PrismaticJoint_SetSpringDampingRatio b2PrismaticJoint_SetSpringHertz b2PrismaticJoint_SetTargetMotorSpeed b2PrismaticJoint_SetTargetTranslation b2RelativeAngle b2RevoluteJoint_EnableLimit b2RevoluteJoint_EnableMotor b2RevoluteJoint_EnableSpring b2RevoluteJoint_GetCurrentAngle b2RevoluteJoint_GetCurrentMotorTorque b2RevoluteJoint_GetCurrentSpeed b2RevoluteJoint_GetLowerLimit b2RevoluteJoint_GetMaxMotorTorque b2RevoluteJoint_GetSpringDampingRatio b2RevoluteJoint_GetSpringHertz b2RevoluteJoint_GetTargetAngle b2RevoluteJoint_GetTargetMotorSpeed b2RevoluteJoint_GetUpperLimit b2RevoluteJoint_IsLimitEnabled b2RevoluteJoint_IsMotorEnabled b2RevoluteJoint_IsSpringEnabled b2RevoluteJoint_SetLimits b2RevoluteJoint_SetMaxMotorTorque b2RevoluteJoint_SetSpringDampingRatio b2RevoluteJoint_SetSpringHertz b2RevoluteJoint_SetTargetAngle b2RevoluteJoint_SetTargetMotorSpeed b2RightPerp b2Rot_GetAngle b2Rot_GetXAxis b2Rot_GetYAxis b2RotateVector b2RoundDownFloat b2RoundUpFloat b2SetLengthUnitsPerMeter b2Shape_ApplyWind b2Shape_AreContactEventsEnabled b2Shape_AreHitEventsEnabled b2Shape_ArePreSolveEventsEnabled b2Shape_AreSensorEventsEnabled b2Shape_CastRay b2Shape_ComputeMassData b2Shape_EnableContactEvents b2Shape_EnableHitEvents b2Shape_EnablePreSolveEvents b2Shape_EnableSensorEvents b2Shape_GetBody b2Shape_GetBounds b2Shape_GetCapsule b2Shape_GetChainSegment b2Shape_GetCircle b2Shape_GetClosestPoint b2Shape_GetContactCapacity b2Shape_GetContactData b2Shape_GetDensity b2Shape_GetFilter b2Shape_GetFriction b2Shape_GetParentChain b2Shape_GetPointer b2Shape_GetPolygon b2Shape_GetRestitution b2Shape_GetSegment b2Shape_GetSensorCapacity b2Shape_GetSensorData b2Shape_GetSurfaceMaterial b2Shape_GetType b2Shape_GetUserData b2Shape_GetUserMaterial b2Shape_GetWorld b2Shape_IsSensor b2Shape_IsValid b2Shape_SetCapsule b2Shape_SetChainSegment b2Shape_SetCircle b2Shape_SetDensity b2Shape_SetFilter b2Shape_SetFriction b2Shape_SetPolygon b2Shape_SetRestitution b2Shape_SetSegment b2Shape_SetSurfaceMaterial b2Shape_SetUserData b2Shape_SetUserMaterial b2Shape_TestPoint b2Solve22 b2SolvePlanes b2SpringDamper b2StoreBodyId b2StoreChainId b2StoreJointId b2StoreShapeId b2StoreWorldId b2Sub b2SubPos b2ToPos b2ToRelativeTransform b2ToVec2 b2TransformPoint b2TransformPolygon b2TransformWorldPoint b2UnwindAngle b2WeldJoint_GetAngularDampingRatio b2WeldJoint_GetAngularHertz b2WeldJoint_GetLinearDampingRatio b2WeldJoint_GetLinearHertz b2WeldJoint_SetAngularDampingRatio b2WeldJoint_SetAngularHertz b2WeldJoint_SetLinearDampingRatio b2WeldJoint_SetLinearHertz b2WheelJoint_EnableLimit b2WheelJoint_EnableMotor b2WheelJoint_EnableSpring b2WheelJoint_GetCurrentMotorTorque b2WheelJoint_GetLowerLimit b2WheelJoint_GetMaxMotorTorque b2WheelJoint_GetSpringDampingRatio b2WheelJoint_GetSpringHertz b2WheelJoint_GetTargetMotorSpeed b2WheelJoint_GetUpperLimit b2WheelJoint_IsLimitEnabled b2WheelJoint_IsMotorEnabled b2WheelJoint_IsSpringEnabled b2WheelJoint_SetLimits b2WheelJoint_SetMaxMotorTorque b2WheelJoint_SetSpringDampingRatio b2WheelJoint_SetSpringHertz b2WheelJoint_SetTargetMotorSpeed b2World_CastMover b2World_CastRay b2World_CastRayClosest b2World_CastShape b2World_CollideMover b2World_DeleteCallback b2World_Draw b2World_EnableContinuous b2World_EnableRestitutionPropagation b2World_EnableSleeping b2World_EnableWarmStarting b2World_Explode b2World_GetAwakeBodyCount b2World_GetBodyEvents b2World_GetBounds b2World_GetContactEvents b2World_GetContactRecycleDistance b2World_GetContactTuning b2World_GetCounters b2World_GetGravity b2World_GetHitEventThreshold b2World_GetJointEvents b2World_GetMaxCapacity b2World_GetMaxLinearSpeed b2World_GetPointer b2World_GetProfile b2World_GetRestitutionIterations b2World_GetRestitutionThreshold b2World_GetSensorEvents b2World_GetSnapshot b2World_GetStateHash b2World_GetWorkerCount b2World_IsContinuousEnabled b2World_IsRestitutionPropagationEnabled b2World_IsSleepingEnabled b2World_IsValid b2World_IsWarmStartingEnabled b2World_OverlapAABB b2World_OverlapShape b2World_RebuildStaticTree b2World_RestoreFromSnapshot b2World_SetContactRecycleDistance b2World_SetContactTuning b2World_SetCustomFilterCallback b2World_SetFrictionCallback b2World_SetGravity b2World_SetHitEventThreshold b2World_SetMaxLinearSpeed b2World_SetPreSolveCallback b2World_SetRestitutionCallback b2World_SetRestitutionIterations b2World_SetRestitutionThreshold b2World_SetWorkerCount b2World_Step GetMemoryStats GetRandomSeed RandomFloat RandomFloatRange RandomInt RandomIntRange RandomPolygon RandomVec2 SetRandomSeed
    B2_GRAPH_COLOR_COUNT: number
    B2_HASH_INIT: number
    B2_PI: number
    b2AABB: new () => b2AABB
    b2BodyDef: { new (): b2BodyDef; new (_0: b2BodyDef): b2BodyDef }
    b2BodyEvents: new () => b2BodyEvents
    b2BodyMoveEvent: {}
    b2BodyType: {
        b2_bodyTypeCount: b2BodyTypeValue<3>;
        b2_dynamicBody: b2BodyTypeValue<2>;
        b2_kinematicBody: b2BodyTypeValue<1>;
        b2_staticBody: b2BodyTypeValue<0>;
    }
    b2Capacity: new () => b2Capacity
    b2Capsule: new () => b2Capsule
    b2CastOutput: new () => b2CastOutput
    b2ChainDef: new () => b2ChainDef
    b2ChainSegment: new () => b2ChainSegment
    b2Circle: new () => b2Circle
    b2CollisionPlane: new () => b2CollisionPlane
    b2ContactBeginTouchEvent: {}
    b2ContactData: {}
    b2ContactEvents: new () => b2ContactEvents
    b2ContactHitEvent: {}
    b2CosSin: new () => b2CosSin
    b2Counters: new () => b2Counters
    b2DebugDraw: { new (): b2DebugDraw; new (_0: b2DebugDraw): b2DebugDraw }
    b2DistanceInput: new () => b2DistanceInput
    b2DistanceJointDef: {
        new (): b2DistanceJointDef;
        new (_0: b2DistanceJointDef): b2DistanceJointDef;
    }
    b2DistanceOutput: new () => b2DistanceOutput
    b2ExplosionDef: new () => b2ExplosionDef
    b2Filter: new () => b2Filter
    b2FilterJointDef: {
        new (): b2FilterJointDef;
        new (_0: b2FilterJointDef): b2FilterJointDef;
    }
    b2Hull: new () => b2Hull
    b2JointDef: new () => b2JointDef
    b2JointEvent: {}
    b2JointEvents: new () => b2JointEvents
    b2JointType: {
        b2_distanceJoint: b2JointTypeValue<0>;
        b2_filterJoint: b2JointTypeValue<1>;
        b2_motorJoint: b2JointTypeValue<2>;
        b2_moverJoint: b2JointTypeValue<3>;
        b2_pogoJoint: b2JointTypeValue<4>;
        b2_prismaticJoint: b2JointTypeValue<5>;
        b2_revoluteJoint: b2JointTypeValue<6>;
        b2_weldJoint: b2JointTypeValue<7>;
        b2_wheelJoint: b2JointTypeValue<8>;
    }
    b2Manifold: new () => b2Manifold
    b2ManifoldPoint: new () => b2ManifoldPoint
    b2MassData: new () => b2MassData
    b2Mat22: new () => b2Mat22
    b2MotionLocks: new () => b2MotionLocks
    b2MotorJointDef: {
        new (): b2MotorJointDef;
        new (_0: b2MotorJointDef): b2MotorJointDef;
    }
    b2MoverJointDef: {
        new (): b2MoverJointDef;
        new (_0: b2MoverJointDef): b2MoverJointDef;
    }
    b2Plane: new () => b2Plane
    b2PlaneSolverResult: new () => b2PlaneSolverResult
    b2PogoJointDef: {
        new (): b2PogoJointDef;
        new (_0: b2PogoJointDef): b2PogoJointDef;
    }
    b2Polygon: { GetMaxVertices(): number; new (): b2Polygon }
    b2Pos_zero: b2Vec2
    b2PrismaticJointDef: {
        new (): b2PrismaticJointDef;
        new (_0: b2PrismaticJointDef): b2PrismaticJointDef;
    }
    b2Profile: new () => b2Profile
    b2QueryFilter: new () => b2QueryFilter
    b2RayCallbackResult: new () => b2RayCallbackResult
    b2RayCastInput: new () => b2RayCastInput
    b2RayResult: new () => b2RayResult
    b2RevoluteJointDef: {
        new (): b2RevoluteJointDef;
        new (_0: b2RevoluteJointDef): b2RevoluteJointDef;
    }
    b2Rot: new () => b2Rot
    b2Rot_identity: b2Rot
    b2Segment: new () => b2Segment
    b2SegmentDistanceResult: new () => b2SegmentDistanceResult
    b2SensorEvents: new () => b2SensorEvents
    b2ShapeCastInput: new () => b2ShapeCastInput
    b2ShapeCastPairInput: new () => b2ShapeCastPairInput
    b2ShapeDef: new () => b2ShapeDef
    b2ShapeProxy: new () => b2ShapeProxy
    b2ShapeType: {
        b2_capsuleShape: b2ShapeTypeValue<1>;
        b2_chainSegmentShape: b2ShapeTypeValue<4>;
        b2_circleShape: b2ShapeTypeValue<0>;
        b2_polygonShape: b2ShapeTypeValue<3>;
        b2_segmentShape: b2ShapeTypeValue<2>;
        b2_shapeTypeCount: b2ShapeTypeValue<5>;
    }
    b2SimplexCache: new () => b2SimplexCache
    b2SurfaceMaterial: new () => b2SurfaceMaterial
    b2Transform: new () => b2Transform
    b2Transform_identity: b2Transform
    b2Vec2: { new (): b2Vec2; new (_0: number, _1: number): b2Vec2 }
    b2Vec2_zero: b2Vec2
    b2WeldJointDef: {
        new (): b2WeldJointDef;
        new (_0: b2WeldJointDef): b2WeldJointDef;
    }
    b2WheelJointDef: {
        new (): b2WheelJointDef;
        new (_0: b2WheelJointDef): b2WheelJointDef;
    }
    b2WorldDef: { new (): b2WorldDef; new (_0: b2WorldDef): b2WorldDef }
    b2WorldTransform_identity: b2Transform
    BasicBodyInterface: {}
    BasicChainInterface: {}
    BasicDistanceJointInterface: {}
    BasicJointInterface: {}
    BasicMotorJointInterface: {}
    BasicMoverJointInterface: {}
    BasicPogoJointInterface: {}
    BasicPrismaticJointInterface: {}
    BasicRevoluteJointInterface: {}
    BasicShapeInterface: {}
    BasicWeldJointInterface: {}
    BasicWheelJointInterface: {}
    BasicWorldInterface: {}
    Body: new () => Body
    BodyConstRef: {}
    BodyRef: {}
    Chain: new () => Chain
    ChainConstRef: {}
    ChainRef: {}
    DebugDrawCommandBuffer: {
        new (): DebugDrawCommandBuffer;
        new (_0: number): DebugDrawCommandBuffer;
    }
    DebugDrawCommandType: {
        e_circle: DebugDrawCommandTypeValue<2>;
        e_line: DebugDrawCommandTypeValue<5>;
        e_point: DebugDrawCommandTypeValue<7>;
        e_polygon: DebugDrawCommandTypeValue<0>;
        e_solidCapsule: DebugDrawCommandTypeValue<4>;
        e_solidCircle: DebugDrawCommandTypeValue<3>;
        e_solidPolygon: DebugDrawCommandTypeValue<1>;
        e_string: DebugDrawCommandTypeValue<8>;
        e_transform: DebugDrawCommandTypeValue<6>;
    }
    DistanceJoint: new () => DistanceJoint
    DistanceJointConstRef: {}
    DistanceJointRef: {}
    Joint: new () => Joint
    JointConstRef: {}
    JointRef: {}
    MotorJoint: new () => MotorJoint
    MotorJointConstRef: {}
    MotorJointRef: {}
    MoverJoint: new () => MoverJoint
    MoverJointConstRef: {}
    MoverJointRef: {}
    PogoJoint: new () => PogoJoint
    PogoJointConstRef: {}
    PogoJointRef: {}
    PrismaticJoint: new () => PrismaticJoint
    PrismaticJointConstRef: {}
    PrismaticJointRef: {}
    RevoluteJoint: new () => RevoluteJoint
    RevoluteJointConstRef: {}
    RevoluteJointRef: {}
    Shape: new () => Shape
    TaskSystem: new (_0: number) => TaskSystem
    WeldJoint: new () => WeldJoint
    WeldJointConstRef: {}
    WeldJointRef: {}
    WheelJoint: new () => WheelJoint
    WheelJointConstRef: {}
    WheelJointRef: {}
    World: { new (): World; new (_0: b2WorldDef): World }
    WorldConstRef: {}
    WorldRef: {}
    • Parameters

      • _0: number
      • _1: number
      • _2: number
      • _3: number
      • _4: number

      Returns number