@box2d/controllers
Advanced tools
Comparing version 0.8.0 to 0.9.0
@@ -93,3 +93,3 @@ "use strict"; | ||
const sc = new core_1.b2Vec2(); | ||
const sarea = b2_submerged_area_1.b2SubmergedAreaForShape(fixture.GetShape(), this.normal, this.offset, body.GetTransform(), sc); | ||
const sarea = (0, b2_submerged_area_1.b2SubmergedAreaForShape)(fixture.GetShape(), this.normal, this.offset, body.GetTransform(), sc); | ||
area += sarea; | ||
@@ -96,0 +96,0 @@ areac.x += sarea * sc.x; |
@@ -103,3 +103,3 @@ "use strict"; | ||
RemoveBody(body) { | ||
core_1.b2Assert(this.m_bodyCount > 0, "Controller is empty"); | ||
(0, core_1.b2Assert)(this.m_bodyCount > 0, "Controller is empty"); | ||
// Find the corresponding edge | ||
@@ -111,3 +111,3 @@ /* b2ControllerEdge */ | ||
} | ||
core_1.b2Assert(edge !== null, "Body is not attached to the controller"); | ||
(0, core_1.b2Assert)(edge !== null, "Body is not attached to the controller"); | ||
// Remove edge from controller list | ||
@@ -114,0 +114,0 @@ if (edge.prevBody) { |
@@ -21,3 +21,3 @@ "use strict"; | ||
const core_1 = require("@box2d/core"); | ||
core_1.b2_augment(core_1.b2World, { | ||
(0, core_1.b2_augment)(core_1.b2World, { | ||
Create(original, gravity) { | ||
@@ -61,3 +61,3 @@ const world = original(gravity); | ||
}); | ||
core_1.b2_augment(core_1.b2World.prototype, { | ||
(0, core_1.b2_augment)(core_1.b2World.prototype, { | ||
CreateBody(original, def = {}) { | ||
@@ -64,0 +64,0 @@ const body = original(def); |
{ | ||
"name": "@box2d/controllers", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "A TypeScript port of LiquidFuns controllers for @box2d/core", | ||
@@ -34,7 +34,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@box2d/core": "^0.8.0" | ||
"@box2d/core": "^0.9.0" | ||
}, | ||
"devDependencies": { | ||
"rimraf": "^3.0.2", | ||
"typescript": "^4.0.2" | ||
"typescript": "^4.4.3" | ||
}, | ||
@@ -44,3 +44,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "b4aefc12a63ad3684097ab975ad964494a428ad7" | ||
"gitHead": "b2ab6ee4489e4f7ae35092349420198f9f4ea3e4" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50525
36
+ Added@box2d/core@0.9.2(transitive)
- Removed@box2d/core@0.8.0(transitive)
Updated@box2d/core@^0.9.0