Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion extensions/box2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
var Vector = Array;
var Vector_a2j_Number = Box2D.NVector;
//package structure
if (typeof Box2D === "undefined") Box2D = {};

Check warning on line 99 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Type '{}' is missing the following properties from type '{ Collision: { Shapes: {}; }; Common: { Math: {}; }; Dynamics: { Contacts: {}; Controllers: {}; Joints: {}; }; postDefs: any[]; }': Collision, Common, Dynamics, postDefs
if (typeof Box2D.Collision === "undefined") Box2D.Collision = {};
if (typeof Box2D.Collision.Shapes === "undefined")
Box2D.Collision.Shapes = {};
Expand All @@ -113,51 +113,51 @@
Box2D.Collision.IBroadPhase = "Box2D.Collision.IBroadPhase";

function b2AABB() {
b2AABB.b2AABB.apply(this, arguments);

Check warning on line 116 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2AABB' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2AABB = b2AABB;

function b2Bound() {
b2Bound.b2Bound.apply(this, arguments);

Check warning on line 121 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2Bound' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2Bound = b2Bound;

function b2BoundValues() {
b2BoundValues.b2BoundValues.apply(this, arguments);

Check warning on line 126 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2BoundValues' does not exist on type '(...args: any[]) => void'.
if (this.constructor === b2BoundValues)
this.b2BoundValues.apply(this, arguments);
}
Box2D.Collision.b2BoundValues = b2BoundValues;

function b2Collision() {
b2Collision.b2Collision.apply(this, arguments);

Check warning on line 133 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2Collision' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2Collision = b2Collision;

function b2ContactID() {
b2ContactID.b2ContactID.apply(this, arguments);

Check warning on line 138 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2ContactID' does not exist on type '(...args: any[]) => void'.
if (this.constructor === b2ContactID)
this.b2ContactID.apply(this, arguments);
}
Box2D.Collision.b2ContactID = b2ContactID;

function b2ContactPoint() {
b2ContactPoint.b2ContactPoint.apply(this, arguments);

Check warning on line 145 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2ContactPoint' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2ContactPoint = b2ContactPoint;

function b2Distance() {
b2Distance.b2Distance.apply(this, arguments);

Check warning on line 150 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2Distance' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2Distance = b2Distance;

function b2DistanceInput() {
b2DistanceInput.b2DistanceInput.apply(this, arguments);

Check warning on line 155 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2DistanceInput' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2DistanceInput = b2DistanceInput;

function b2DistanceOutput() {
b2DistanceOutput.b2DistanceOutput.apply(this, arguments);

Check warning on line 160 in extensions/box2d.js

View workflow job for this annotation

GitHub Actions / type-warnings

Type warning - may indicate a bug - ignore if no bug

Property 'b2DistanceOutput' does not exist on type '(...args: any[]) => void'.
}
Box2D.Collision.b2DistanceOutput = b2DistanceOutput;

Expand Down Expand Up @@ -13720,7 +13720,7 @@
}
break;
case SPACE_TYPE_OPTIONS.RELATIVE: {
_setXY(util.target, util.target.x + x, util.target.x + y);
_setXY(util.target, util.target.x + x, util.target.y + y);
if (body) {
const pos = body.GetPosition();
const pos2 = new b2Vec2(pos.x + x / zoom, pos.y + y / zoom);
Expand Down