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

@enable3d/ammo-physics

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@enable3d/ammo-physics - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0-dev.0

4

dist/convexObjectBreaker.js

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

try {
object1 = new index_1.Mesh(new index_2.ConvexBufferGeometry(points1), object.material);
object1 = new index_1.Mesh(new index_2.ConvexGeometry(points1), object.material);
object1.position.copy(this.tempCM1);

@@ -347,3 +347,3 @@ object1.quaternion.copy(object.quaternion);

try {
object2 = new index_1.Mesh(new index_2.ConvexBufferGeometry(points2), object.material);
object2 = new index_1.Mesh(new index_2.ConvexGeometry(points2), object.material);
object2.position.copy(this.tempCM2);

@@ -350,0 +350,0 @@ object2.quaternion.copy(object.quaternion);

@@ -16,2 +16,3 @@ /**

import Factories from '@enable3d/common/dist/factories';
import { CollisionEvents } from './collisionEvents';
import DebugDrawer from './debugDrawer';

@@ -62,3 +63,3 @@ import { PhysicsLoader } from '@enable3d/common/dist/physicsLoader';

private constraints;
private collisionEvents;
collisionEvents: CollisionEvents;
private readonly complexShapes;

@@ -65,0 +66,0 @@ constructor(scene: Scene | 'headless', config?: Types.ThreeGraphicsConfig);

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

// @ts-ignore
if (+index_1.REVISION >= 123)
if (parseInt(index_1.REVISION) >= 123)
this.tmpMatrix4a.copy(objThree.parent.matrixWorld).invert();

@@ -551,4 +551,6 @@ else

// transform geometry to bufferGeometry (because three-to-ammo works only with bufferGeometry)
// @ts-expect-error
const geometry = object === null || object === void 0 ? void 0 : object.geometry;
if (object && (geometry === null || geometry === void 0 ? void 0 : geometry.isGeometry)) {
// @ts-expect-error
object.geometry = new index_1.BufferGeometry().fromGeometry(geometry);

@@ -571,3 +573,3 @@ }

// extract data for complex shapes generated with three-to-ammo.js
if (this.complexShapes.indexOf(shape) > 0)
if (this.complexShapes.indexOf(shape) !== -1)
d = extractData(object);

@@ -574,0 +576,0 @@ let collisionShape;

@@ -30,5 +30,5 @@ export namespace TYPE {

export function createVHACDShapes(vertices: any, matrices: any, indexes: any, matrixWorld: any, options?: {}): Ammo.btConvexHullShape[];
export function createTriMeshShape(vertices: any, matrices: any, indexes: any, matrixWorld: any, options?: {}): Ammo.btConvexTriangleMeshShape | Ammo.btBvhTriangleMeshShape | null;
export function createTriMeshShape(vertices: any, matrices: any, indexes: any, matrixWorld: any, options?: {}): Ammo.btBvhTriangleMeshShape | Ammo.btConvexTriangleMeshShape | null;
export function createHeightfieldTerrainShape(options?: {}): Ammo.btHeightfieldTerrainShape | null;
export function iterateGeometries(root: any, options: any, cb: any): void;
//# sourceMappingURL=three-to-ammo.d.ts.map

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

// compatibility fix for three.js >= r123 (Dezember 2020)
if (+index_1.REVISION >= 123)
if (parseInt(index_1.REVISION) >= 123)
inverse.copy(root.matrixWorld).invert();

@@ -607,0 +607,0 @@ else

{
"name": "@enable3d/ammo-physics",
"version": "0.21.0",
"version": "0.22.0-dev.0",
"description": "Physics Plugin for three.js",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"fix": "npm audit fix",
"bundle": "cross-env-shell webpack --config ../../webpack/webpack.ammoPhysics.js --path=../bundles --packageVersion=${npm_package_version}"
"bundle": "cross-env-shell webpack --config ../../webpack/webpack.ammoPhysics.js --env path=../bundles --env packageVersion=${npm_package_version}"
},

@@ -33,4 +33,4 @@ "keywords": [

"dependencies": {
"@enable3d/common": "^0.21.0",
"@enable3d/three-wrapper": "^0.21.0",
"@enable3d/common": "^0.22.0-dev.0",
"@enable3d/three-wrapper": "^0.22.0-dev.0",
"eventemitter3": "^4.0.4"

@@ -37,0 +37,0 @@ },

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

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