q5play
    Preparing search index...

    Interface EmbindModule

    interface EmbindModule {
        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>;
        };
        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 };
        b2DistanceJointDef: {
            new (): b2DistanceJointDef;
            new (_0: b2DistanceJointDef): b2DistanceJointDef;
        };
        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_prismaticJoint: b2JointTypeValue<3>;
            b2_revoluteJoint: b2JointTypeValue<4>;
            b2_weldJoint: b2JointTypeValue<5>;
            b2_wheelJoint: b2JointTypeValue<6>;
        };
        b2Manifold: new () => b2Manifold;
        b2ManifoldPoint: new () => b2ManifoldPoint;
        b2MassData: new () => b2MassData;
        b2Mat22: new () => b2Mat22;
        b2MotionLocks: new () => b2MotionLocks;
        b2MotorJointDef: {
            new (): b2MotorJointDef;
            new (_0: b2MotorJointDef): b2MotorJointDef;
        };
        b2Plane: new () => b2Plane;
        b2PlaneSolverResult: new () => b2PlaneSolverResult;
        b2Polygon: { GetMaxVertices(): number; new (): b2Polygon };
        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;
        b2SensorEvents: new () => b2SensorEvents;
        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>;
        };
        b2SurfaceMaterial: new () => b2SurfaceMaterial;
        b2Transform: new () => 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 };
        BasicBodyInterface: {};
        BasicChainInterface: {};
        BasicDistanceJointInterface: {};
        BasicJointInterface: {};
        BasicMotorJointInterface: {};
        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: {};
        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_Union(_0: b2AABB, _1: b2AABB): b2AABB;
        b2Abs(_0: b2Vec2): b2Vec2;
        b2Add(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        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_ApplyMassFromShapes(_0: b2BodyId): void;
        b2Body_ApplyTorque(_0: b2BodyId, _1: number, _2: boolean): void;
        b2Body_ComputeAABB(_0: b2BodyId): b2AABB;
        b2Body_Disable(_0: b2BodyId): void;
        b2Body_Enable(_0: b2BodyId): void;
        b2Body_EnableContactEvents(_0: b2BodyId, _1: boolean): void;
        b2Body_EnableHitEvents(_0: b2BodyId, _1: boolean): void;
        b2Body_EnableSleep(_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_GetLocalCenterOfMass(_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_GetMotionLocks(_0: b2BodyId): b2MotionLocks;
        b2Body_GetPointer(_0: b2BodyId): any;
        b2Body_GetPosition(_0: b2BodyId): b2Vec2;
        b2Body_GetRotation(_0: b2BodyId): b2Rot;
        b2Body_GetRotationalInertia(_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_GetWorld(_0: b2BodyId): b2WorldId;
        b2Body_GetWorldCenterOfMass(_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_IsEnabled(_0: b2BodyId): boolean;
        b2Body_IsSleepEnabled(_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_SetSleepThreshold(_0: b2BodyId, _1: number): void;
        b2Body_SetTargetTransform(_0: b2BodyId, _1: b2Transform, _2: number): void;
        b2Body_SetTransform(_0: b2BodyId, _1: b2Vec2, _2: b2Rot): void;
        b2Body_SetType(_0: b2BodyId, _1: b2BodyType): void;
        b2Chain_GetSegmentCount(_0: b2ChainId): number;
        b2Chain_GetSegments(_0: b2ChainId, _1: number): any;
        b2Chain_IsValid(_0: b2ChainId): boolean;
        b2Clamp(_0: b2Vec2, _1: b2Vec2, _2: b2Vec2): b2Vec2;
        b2ClipVector(_0: b2Vec2, _1: any): b2Vec2;
        b2ComputeAngularVelocity(_0: b2Rot, _1: b2Rot, _2: number): number;
        b2ComputeCapsuleAABB(_0: b2Capsule | null, _1: b2Transform): b2AABB;
        b2ComputeCapsuleMass(_0: b2Capsule | null, _1: number): b2MassData;
        b2ComputeCircleAABB(_0: b2Circle | null, _1: b2Transform): b2AABB;
        b2ComputeCircleMass(_0: b2Circle | null, _1: number): b2MassData;
        b2ComputeHull(_0: any): b2Hull;
        b2ComputePolygonAABB(_0: b2Polygon | null, _1: b2Transform): b2AABB;
        b2ComputePolygonMass(_0: b2Polygon | null, _1: number): b2MassData;
        b2ComputeSegmentAABB(_0: b2Segment | null, _1: b2Transform): b2AABB;
        b2CreateBody(_0: b2WorldId, _1: b2BodyDef | null): b2BodyId;
        b2CreateCapsuleShape(
            _0: b2BodyId,
            _1: b2ShapeDef | null,
            _2: b2Capsule | null,
        ): b2ShapeId;
        b2CreateChain(_0: b2BodyId, _1: b2ChainDef | null): b2ChainId;
        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;
        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;
        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;
        b2DefaultFilterJointDef(): b2FilterJointDef;
        b2DefaultMotorJointDef(): b2MotorJointDef;
        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, _1: boolean): 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_GetLength(_0: b2JointId): number;
        b2DistanceJoint_GetMaxLength(_0: b2JointId): number;
        b2DistanceJoint_GetMaxMotorForce(_0: b2JointId): number;
        b2DistanceJoint_GetMinLength(_0: b2JointId): number;
        b2DistanceJoint_GetMotorForce(_0: b2JointId): number;
        b2DistanceJoint_GetMotorSpeed(_0: b2JointId): number;
        b2DistanceJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2DistanceJoint_GetSpringHertz(_0: b2JointId): number;
        b2DistanceJoint_IsLimitEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_IsMotorEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_IsSpringEnabled(_0: b2JointId): boolean;
        b2DistanceJoint_SetLength(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetLengthRange(_0: b2JointId, _1: number, _2: number): void;
        b2DistanceJoint_SetMaxMotorForce(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetMotorSpeed(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2DistanceJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2DistanceSquared(_0: b2Vec2, _1: b2Vec2): number;
        b2Dot(_0: b2Vec2, _1: b2Vec2): number;
        b2GetInverse22(_0: b2Mat22): b2Mat22;
        b2Hash(_0: number, _1: any): number;
        b2IntegrateRotation(_0: b2Rot, _1: number): b2Rot;
        b2InvMulRot(_0: b2Rot, _1: b2Rot): b2Rot;
        b2InvMulTransforms(_0: b2Transform, _1: b2Transform): b2Transform;
        b2InvRotateVector(_0: b2Rot, _1: b2Vec2): b2Vec2;
        b2InvTransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2IsNormalized(_0: b2Vec2): boolean;
        b2IsValidPlane(_0: b2Plane): boolean;
        b2IsValidRay(_0: b2RayCastInput | null): boolean;
        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_GetForceThreshold(_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_GetWorld(_0: b2JointId): b2WorldId;
        b2Joint_IsValid(_0: b2JointId): boolean;
        b2Joint_SetCollideConnected(_0: b2JointId, _1: boolean): 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_WakeBodies(_0: b2JointId): void;
        b2LeftPerp(_0: b2Vec2): b2Vec2;
        b2Length(_0: b2Vec2): number;
        b2LengthSquared(_0: b2Vec2): number;
        b2Lerp(_0: b2Vec2, _1: b2Vec2, _2: number): b2Vec2;
        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;
        b2MakeRoundedBox(_0: number, _1: number, _2: number): b2Polygon;
        b2MakeSquare(_0: number): b2Polygon;
        b2Max(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2MaxFloat(_0: number, _1: number): number;
        b2Min(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        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;
        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;
        b2Neg(_0: b2Vec2): b2Vec2;
        b2NLerp(_0: b2Rot, _1: b2Rot, _2: number): b2Rot;
        b2Normalize(_0: b2Vec2): b2Vec2;
        b2NormalizeRot(_0: b2Rot): b2Rot;
        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_GetLowerLimit(_0: b2JointId): number;
        b2PrismaticJoint_GetMaxMotorForce(_0: b2JointId): number;
        b2PrismaticJoint_GetMotorForce(_0: b2JointId): number;
        b2PrismaticJoint_GetMotorSpeed(_0: b2JointId): number;
        b2PrismaticJoint_GetSpeed(_0: b2JointId): number;
        b2PrismaticJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2PrismaticJoint_GetSpringHertz(_0: b2JointId): number;
        b2PrismaticJoint_GetTranslation(_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_SetMotorSpeed(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2PrismaticJoint_SetSpringHertz(_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_GetAngle(_0: b2JointId): number;
        b2RevoluteJoint_GetLowerLimit(_0: b2JointId): number;
        b2RevoluteJoint_GetMaxMotorTorque(_0: b2JointId): number;
        b2RevoluteJoint_GetMotorSpeed(_0: b2JointId): number;
        b2RevoluteJoint_GetMotorTorque(_0: b2JointId): number;
        b2RevoluteJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2RevoluteJoint_GetSpringHertz(_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_SetMotorSpeed(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2RevoluteJoint_SetSpringHertz(_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;
        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_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_GetAABB(_0: b2ShapeId): b2AABB;
        b2Shape_GetBody(_0: b2ShapeId): b2BodyId;
        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_GetWorld(_0: b2ShapeId): b2WorldId;
        b2Shape_IsSensor(_0: b2ShapeId): boolean;
        b2Shape_IsValid(_0: b2ShapeId): boolean;
        b2Shape_RayCast(_0: b2ShapeId, _1: b2RayCastInput | null): b2CastOutput;
        b2Shape_SetCapsule(_0: b2ShapeId, _1: b2Capsule | 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_TestPoint(_0: b2ShapeId, _1: b2Vec2): boolean;
        b2Solve22(_0: b2Mat22, _1: b2Vec2): b2Vec2;
        b2SolvePlanes(_0: b2Vec2, _1: any): b2PlaneSolverResult;
        b2Sub(_0: b2Vec2, _1: b2Vec2): b2Vec2;
        b2TransformPoint(_0: b2Transform, _1: b2Vec2): b2Vec2;
        b2TransformPolygon(_0: b2Transform, _1: b2Polygon | null): b2Polygon;
        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_GetLowerLimit(_0: b2JointId): number;
        b2WheelJoint_GetMaxMotorTorque(_0: b2JointId): number;
        b2WheelJoint_GetMotorSpeed(_0: b2JointId): number;
        b2WheelJoint_GetMotorTorque(_0: b2JointId): number;
        b2WheelJoint_GetSpringDampingRatio(_0: b2JointId): number;
        b2WheelJoint_GetSpringHertz(_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_SetMotorSpeed(_0: b2JointId, _1: number): void;
        b2WheelJoint_SetSpringDampingRatio(_0: b2JointId, _1: number): void;
        b2WheelJoint_SetSpringHertz(_0: b2JointId, _1: number): void;
        b2World_CastMover(
            _0: b2WorldId,
            _1: b2Capsule | null,
            _2: b2Vec2,
            _3: 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: b2ShapeProxy | null,
            _2: b2Vec2,
            _3: b2QueryFilter,
            _4: any,
        ): b2TreeStats;
        b2World_CollideMover(
            _0: b2WorldId,
            _1: b2Capsule | null,
            _2: b2QueryFilter,
            _3: any,
        ): void;
        b2World_DeleteCallback(_0: number): void;
        b2World_Draw(_0: b2WorldId, _1: b2DebugDraw | null): void;
        b2World_EnableContinuous(_0: b2WorldId, _1: boolean): void;
        b2World_EnableSleeping(_0: b2WorldId, _1: boolean): void;
        b2World_EnableSpeculative(_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_GetContactEvents(_0: b2WorldId): b2ContactEvents;
        b2World_GetCounters(_0: b2WorldId): b2Counters;
        b2World_GetGravity(_0: b2WorldId): b2Vec2;
        b2World_GetHitEventThreshold(_0: b2WorldId): number;
        b2World_GetJointEvents(_0: b2WorldId): b2JointEvents;
        b2World_GetMaximumLinearSpeed(_0: b2WorldId): number;
        b2World_GetPointer(_0: b2WorldId): any;
        b2World_GetProfile(_0: b2WorldId): b2Profile;
        b2World_GetRestitutionThreshold(_0: b2WorldId): number;
        b2World_GetSensorEvents(_0: b2WorldId): b2SensorEvents;
        b2World_IsContinuousEnabled(_0: b2WorldId): boolean;
        b2World_IsSleepingEnabled(_0: b2WorldId): boolean;
        b2World_IsValid(_0: b2WorldId): boolean;
        b2World_IsWarmStartingEnabled(_0: b2WorldId): boolean;
        b2World_OverlapAABB(
            _0: b2WorldId,
            _1: b2AABB,
            _2: b2QueryFilter,
            _3: any,
        ): b2TreeStats;
        b2World_OverlapShape(
            _0: b2WorldId,
            _1: b2ShapeProxy | null,
            _2: b2QueryFilter,
            _3: any,
        ): b2TreeStats;
        b2World_RebuildStaticTree(_0: b2WorldId): 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_SetMaximumLinearSpeed(_0: b2WorldId, _1: number): void;
        b2World_SetPreSolveCallback(_0: b2WorldId, _1: any): number;
        b2World_SetRestitutionCallback(_0: b2WorldId, _1: any): void;
        b2World_SetRestitutionThreshold(_0: b2WorldId, _1: number): void;
        b2World_Step(_0: b2WorldId, _1: number, _2: number): void;
        GetMemoryStats(): MemoryStats;
        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;
    }
    Index

    Properties

    Methods

    B2_ID_EQUALS b2AABB_Center b2AABB_Contains b2AABB_Extents b2AABB_Union b2Abs b2Add b2Body_ApplyAngularImpulse b2Body_ApplyForce b2Body_ApplyForceToCenter b2Body_ApplyLinearImpulse b2Body_ApplyLinearImpulseToCenter b2Body_ApplyMassFromShapes b2Body_ApplyTorque b2Body_ComputeAABB b2Body_Disable b2Body_Enable b2Body_EnableContactEvents b2Body_EnableHitEvents b2Body_EnableSleep b2Body_GetAngularDamping b2Body_GetAngularVelocity b2Body_GetContactCapacity b2Body_GetContactData b2Body_GetGravityScale b2Body_GetJointCount b2Body_GetJoints b2Body_GetLinearDamping b2Body_GetLinearVelocity b2Body_GetLocalCenterOfMass b2Body_GetLocalPoint b2Body_GetLocalPointVelocity b2Body_GetLocalVector b2Body_GetMass b2Body_GetMassData b2Body_GetMotionLocks b2Body_GetPointer b2Body_GetPosition b2Body_GetRotation b2Body_GetRotationalInertia b2Body_GetShapeCount b2Body_GetShapes b2Body_GetSleepThreshold b2Body_GetTransform b2Body_GetType b2Body_GetWorld b2Body_GetWorldCenterOfMass b2Body_GetWorldPoint b2Body_GetWorldPointVelocity b2Body_GetWorldVector b2Body_IsAwake b2Body_IsBullet b2Body_IsEnabled b2Body_IsSleepEnabled b2Body_IsValid b2Body_SetAngularDamping b2Body_SetAngularVelocity b2Body_SetAwake b2Body_SetBullet b2Body_SetGravityScale b2Body_SetLinearDamping b2Body_SetLinearVelocity b2Body_SetMassData b2Body_SetMotionLocks b2Body_SetSleepThreshold b2Body_SetTargetTransform b2Body_SetTransform b2Body_SetType b2Chain_GetSegmentCount b2Chain_GetSegments b2Chain_IsValid b2Clamp b2ClipVector b2ComputeAngularVelocity b2ComputeCapsuleAABB b2ComputeCapsuleMass b2ComputeCircleAABB b2ComputeCircleMass b2ComputeHull b2ComputePolygonAABB b2ComputePolygonMass b2ComputeSegmentAABB b2CreateBody b2CreateCapsuleShape b2CreateChain b2CreateCircleShape b2CreateDistanceJoint b2CreateFilterJoint b2CreateMotorJoint b2CreatePolygonShape b2CreatePrismaticJoint b2CreateRevoluteJoint b2CreateSegmentShape b2CreateThreadedWorld b2CreateWeldJoint b2CreateWheelJoint b2CreateWorld b2Cross b2CrossSV b2CrossVS b2DefaultBodyDef b2DefaultChainDef b2DefaultDebugDraw b2DefaultDistanceJointDef b2DefaultExplosionDef b2DefaultFilterJointDef b2DefaultMotorJointDef b2DefaultPrismaticJointDef b2DefaultQueryFilter b2DefaultRevoluteJointDef b2DefaultShapeDef b2DefaultSurfaceMaterial b2DefaultWeldJointDef b2DefaultWheelJointDef b2DefaultWorldDef b2DestroyBody b2DestroyChain b2DestroyJoint b2DestroyShape b2DestroyWorld b2Distance b2DistanceJoint_EnableLimit b2DistanceJoint_EnableMotor b2DistanceJoint_EnableSpring b2DistanceJoint_GetCurrentLength b2DistanceJoint_GetLength b2DistanceJoint_GetMaxLength b2DistanceJoint_GetMaxMotorForce b2DistanceJoint_GetMinLength b2DistanceJoint_GetMotorForce b2DistanceJoint_GetMotorSpeed b2DistanceJoint_GetSpringDampingRatio b2DistanceJoint_GetSpringHertz b2DistanceJoint_IsLimitEnabled b2DistanceJoint_IsMotorEnabled b2DistanceJoint_IsSpringEnabled b2DistanceJoint_SetLength b2DistanceJoint_SetLengthRange b2DistanceJoint_SetMaxMotorForce b2DistanceJoint_SetMotorSpeed b2DistanceJoint_SetSpringDampingRatio b2DistanceJoint_SetSpringHertz b2DistanceSquared b2Dot b2GetInverse22 b2Hash b2IntegrateRotation b2InvMulRot b2InvMulTransforms b2InvRotateVector b2InvTransformPoint b2IsNormalized b2IsValidPlane b2IsValidRay b2Joint_GetBodyA b2Joint_GetBodyB b2Joint_GetCollideConnected b2Joint_GetConstraintForce b2Joint_GetConstraintTorque b2Joint_GetForceThreshold b2Joint_GetLocalFrameA b2Joint_GetLocalFrameB b2Joint_GetPointer b2Joint_GetTorqueThreshold b2Joint_GetType b2Joint_GetWorld b2Joint_IsValid b2Joint_SetCollideConnected b2Joint_SetForceThreshold b2Joint_SetLocalFrameA b2Joint_SetLocalFrameB b2Joint_SetTorqueThreshold b2Joint_WakeBodies b2LeftPerp b2Length b2LengthSquared b2Lerp b2MakeBox b2MakeOffsetBox b2MakeOffsetPolygon b2MakeOffsetProxy b2MakeOffsetRoundedBox b2MakeOffsetRoundedPolygon b2MakePolygon b2MakeProxy b2MakeRot b2MakeRoundedBox b2MakeSquare b2Max b2MaxFloat b2Min 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 b2Mul b2MulAdd b2MulMV b2MulRot b2MulSub b2MulSV b2MulTransforms b2Neg b2NLerp b2Normalize b2NormalizeRot b2PointInCapsule b2PointInCircle b2PointInPolygon b2PrismaticJoint_EnableLimit b2PrismaticJoint_EnableMotor b2PrismaticJoint_EnableSpring b2PrismaticJoint_GetLowerLimit b2PrismaticJoint_GetMaxMotorForce b2PrismaticJoint_GetMotorForce b2PrismaticJoint_GetMotorSpeed b2PrismaticJoint_GetSpeed b2PrismaticJoint_GetSpringDampingRatio b2PrismaticJoint_GetSpringHertz b2PrismaticJoint_GetTranslation b2PrismaticJoint_GetUpperLimit b2PrismaticJoint_IsLimitEnabled b2PrismaticJoint_IsMotorEnabled b2PrismaticJoint_IsSpringEnabled b2PrismaticJoint_SetLimits b2PrismaticJoint_SetMaxMotorForce b2PrismaticJoint_SetMotorSpeed b2PrismaticJoint_SetSpringDampingRatio b2PrismaticJoint_SetSpringHertz b2RelativeAngle b2RevoluteJoint_EnableLimit b2RevoluteJoint_EnableMotor b2RevoluteJoint_EnableSpring b2RevoluteJoint_GetAngle b2RevoluteJoint_GetLowerLimit b2RevoluteJoint_GetMaxMotorTorque b2RevoluteJoint_GetMotorSpeed b2RevoluteJoint_GetMotorTorque b2RevoluteJoint_GetSpringDampingRatio b2RevoluteJoint_GetSpringHertz b2RevoluteJoint_GetUpperLimit b2RevoluteJoint_IsLimitEnabled b2RevoluteJoint_IsMotorEnabled b2RevoluteJoint_IsSpringEnabled b2RevoluteJoint_SetLimits b2RevoluteJoint_SetMaxMotorTorque b2RevoluteJoint_SetMotorSpeed b2RevoluteJoint_SetSpringDampingRatio b2RevoluteJoint_SetSpringHertz b2RightPerp b2Rot_GetAngle b2Rot_GetXAxis b2Rot_GetYAxis b2RotateVector b2Shape_ApplyWind b2Shape_AreContactEventsEnabled b2Shape_AreHitEventsEnabled b2Shape_ArePreSolveEventsEnabled b2Shape_AreSensorEventsEnabled b2Shape_ComputeMassData b2Shape_EnableContactEvents b2Shape_EnableHitEvents b2Shape_EnablePreSolveEvents b2Shape_EnableSensorEvents b2Shape_GetAABB b2Shape_GetBody 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_GetWorld b2Shape_IsSensor b2Shape_IsValid b2Shape_RayCast b2Shape_SetCapsule b2Shape_SetCircle b2Shape_SetDensity b2Shape_SetFilter b2Shape_SetFriction b2Shape_SetPolygon b2Shape_SetRestitution b2Shape_SetSegment b2Shape_SetSurfaceMaterial b2Shape_TestPoint b2Solve22 b2SolvePlanes b2Sub b2TransformPoint b2TransformPolygon b2UnwindAngle b2WeldJoint_GetAngularDampingRatio b2WeldJoint_GetAngularHertz b2WeldJoint_GetLinearDampingRatio b2WeldJoint_GetLinearHertz b2WeldJoint_SetAngularDampingRatio b2WeldJoint_SetAngularHertz b2WeldJoint_SetLinearDampingRatio b2WeldJoint_SetLinearHertz b2WheelJoint_EnableLimit b2WheelJoint_EnableMotor b2WheelJoint_EnableSpring b2WheelJoint_GetLowerLimit b2WheelJoint_GetMaxMotorTorque b2WheelJoint_GetMotorSpeed b2WheelJoint_GetMotorTorque b2WheelJoint_GetSpringDampingRatio b2WheelJoint_GetSpringHertz b2WheelJoint_GetUpperLimit b2WheelJoint_IsLimitEnabled b2WheelJoint_IsMotorEnabled b2WheelJoint_IsSpringEnabled b2WheelJoint_SetLimits b2WheelJoint_SetMaxMotorTorque b2WheelJoint_SetMotorSpeed b2WheelJoint_SetSpringDampingRatio b2WheelJoint_SetSpringHertz b2World_CastMover b2World_CastRay b2World_CastRayClosest b2World_CastShape b2World_CollideMover b2World_DeleteCallback b2World_Draw b2World_EnableContinuous b2World_EnableSleeping b2World_EnableSpeculative b2World_EnableWarmStarting b2World_Explode b2World_GetAwakeBodyCount b2World_GetBodyEvents b2World_GetContactEvents b2World_GetCounters b2World_GetGravity b2World_GetHitEventThreshold b2World_GetJointEvents b2World_GetMaximumLinearSpeed b2World_GetPointer b2World_GetProfile b2World_GetRestitutionThreshold b2World_GetSensorEvents b2World_IsContinuousEnabled b2World_IsSleepingEnabled b2World_IsValid b2World_IsWarmStartingEnabled b2World_OverlapAABB b2World_OverlapShape b2World_RebuildStaticTree b2World_SetContactTuning b2World_SetCustomFilterCallback b2World_SetFrictionCallback b2World_SetGravity b2World_SetHitEventThreshold b2World_SetMaximumLinearSpeed b2World_SetPreSolveCallback b2World_SetRestitutionCallback b2World_SetRestitutionThreshold b2World_Step GetMemoryStats RandomFloat RandomFloatRange RandomInt RandomIntRange RandomPolygon RandomVec2

    Properties

    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>;
    }
    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 }
    b2DistanceJointDef: {
        new (): b2DistanceJointDef;
        new (_0: b2DistanceJointDef): b2DistanceJointDef;
    }
    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_prismaticJoint: b2JointTypeValue<3>;
        b2_revoluteJoint: b2JointTypeValue<4>;
        b2_weldJoint: b2JointTypeValue<5>;
        b2_wheelJoint: b2JointTypeValue<6>;
    }
    b2Manifold: new () => b2Manifold
    b2ManifoldPoint: new () => b2ManifoldPoint
    b2MassData: new () => b2MassData
    b2Mat22: new () => b2Mat22
    b2MotionLocks: new () => b2MotionLocks
    b2MotorJointDef: {
        new (): b2MotorJointDef;
        new (_0: b2MotorJointDef): b2MotorJointDef;
    }
    b2Plane: new () => b2Plane
    b2PlaneSolverResult: new () => b2PlaneSolverResult
    b2Polygon: { GetMaxVertices(): number; new (): b2Polygon }
    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
    b2SensorEvents: new () => b2SensorEvents
    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>;
    }
    b2SurfaceMaterial: new () => b2SurfaceMaterial
    b2Transform: new () => 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 }
    BasicBodyInterface: {}
    BasicChainInterface: {}
    BasicDistanceJointInterface: {}
    BasicJointInterface: {}
    BasicMotorJointInterface: {}
    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: {}
    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: {}

    Methods

    • Parameters

      • _0: any
      • _1: any

      Returns boolean

    • Parameters

      • _0: number
      • _1: number

      Returns number

    • Parameters

      Returns void

    • Parameters

      • _0: number
      • _1: number

      Returns number

    • Parameters

      • _0: number
      • _1: number

      Returns number