Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@box2d/controllers

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@box2d/controllers - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

2

dist/controller/b2_buoyancy_controller.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc