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.7.5 to 0.8.0

0

dist/controller/b2_buoyancy_controller.d.ts

@@ -0,0 +0,0 @@ import { b2Vec2, b2TimeStep } from "@box2d/core";

2

dist/controller/b2_buoyancy_controller.js

@@ -91,3 +91,3 @@ "use strict";

let mass = 0;
for (let fixture = body.GetFixtureList(); fixture; fixture = fixture.m_next) {
for (let fixture = body.GetFixtureList(); fixture; fixture = fixture.GetNext()) {
const sc = new core_1.b2Vec2();

@@ -94,0 +94,0 @@ const sarea = b2_submerged_area_1.b2SubmergedAreaForShape(fixture.GetShape(), this.normal, this.offset, body.GetTransform(), sc);

@@ -0,0 +0,0 @@ import { b2Vec2, b2TimeStep } from "@box2d/core";

@@ -0,0 +0,0 @@ import { b2Vec2, b2TimeStep } from "@box2d/core";

import { b2Draw, b2World } from "@box2d/core";
export declare function DrawControllers(draw: b2Draw, world: b2World): void;
//# sourceMappingURL=b2_controller_draw_helper.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DrawControllers = void 0;
/* eslint-disable dot-notation */
/*

@@ -6,0 +5,0 @@ * Copyright (c) 2006-2011 Erin Catto http://www.box2d.org

@@ -7,7 +7,13 @@ import { b2TimeStep, b2Body } from "@box2d/core";

export declare class b2ControllerEdge {
/** Provides quick access to other end of this edge. */
readonly controller: b2Controller;
/** The body */
readonly body: b2Body;
/** The previous controller edge in the controller's joint list */
prevBody: b2ControllerEdge | null;
/** The next controller edge in the controller's joint list */
nextBody: b2ControllerEdge | null;
/** The previous controller edge in the body's joint list */
prevController: b2ControllerEdge | null;
/** The next controller edge in the body's joint list */
nextController: b2ControllerEdge | null;

@@ -14,0 +20,0 @@ constructor(controller: b2Controller, body: b2Body);

@@ -28,6 +28,10 @@ "use strict";

constructor(controller, body) {
this.prevBody = null; /// < the previous controller edge in the controllers's joint list
this.nextBody = null; /// < the next controller edge in the controllers's joint list
this.prevController = null; /// < the previous controller edge in the body's joint list
this.nextController = null; /// < the next controller edge in the body's joint list
/** The previous controller edge in the controller's joint list */
this.prevBody = null;
/** The next controller edge in the controller's joint list */
this.nextBody = null;
/** The previous controller edge in the body's joint list */
this.prevController = null;
/** The next controller edge in the body's joint list */
this.nextController = null;
this.controller = controller;

@@ -34,0 +38,0 @@ this.body = body;

@@ -0,0 +0,0 @@ import { b2TimeStep } from "@box2d/core";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { b2Vec2, b2Transform, b2Shape } from "@box2d/core";

@@ -0,0 +0,0 @@ "use strict";

@@ -9,3 +9,5 @@ import { b2TimeStep, b2Mat22 } from "@box2d/core";

export declare class b2TensorDampingController extends b2Controller {
/** Tensor to use in damping model */
readonly T: b2Mat22;
/** Set this to a positive number to clamp the maximum amount of damping done. */
maxTimestep: number;

@@ -12,0 +14,0 @@ /**

@@ -32,3 +32,3 @@ "use strict";

super(...arguments);
/// Tensor to use in damping model
/** Tensor to use in damping model */
this.T = new core_1.b2Mat22();

@@ -41,3 +41,3 @@ /* Some examples (matrixes in format (row1; row2))

// By the way, tensor in this case just means matrix, don't let the terminology get you down.
/// Set this to a positive number to clamp the maximum amount of damping done.
/** Set this to a positive number to clamp the maximum amount of damping done. */
this.maxTimestep = 0;

@@ -44,0 +44,0 @@ }

@@ -0,0 +0,0 @@ import { b2ControllerEdge } from "../controller/b2_controller";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { b2Controller } from "../controller/b2_controller";

@@ -76,2 +76,4 @@ "use strict";

},
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
Solve(original, step) {

@@ -78,0 +80,0 @@ for (let controller = this.m_controllerList; controller; controller = controller.m_next) {

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@box2d/controllers",
"version": "0.7.5",
"version": "0.8.0",
"description": "A TypeScript port of LiquidFuns controllers for @box2d/core",

@@ -34,3 +34,3 @@ "keywords": [

"dependencies": {
"@box2d/core": "^0.7.5"
"@box2d/core": "^0.8.0"
},

@@ -44,3 +44,3 @@ "devDependencies": {

},
"gitHead": "f62ed214a9e67fe00eaf6fb23cc6c648db618aee"
"gitHead": "b4aefc12a63ad3684097ab975ad964494a428ad7"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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