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

three-to-cannon

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-to-cannon - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

8

index.js

@@ -306,3 +306,9 @@ var CANNON = require('cannon'),

scale = new THREE.Vector3();
tmp = meshes[0].geometry.clone();
if (meshes[0].geometry instanceof THREE.BufferGeometry) {
if (meshes[0].geometry.attributes.position) {
tmp.fromBufferGeometry(meshes[0].geometry);
}
} else {
tmp = meshes[0].geometry.clone();
}
tmp.metadata = meshes[0].geometry.metadata;

@@ -309,0 +315,0 @@ meshes[0].updateMatrixWorld();

2

package.json
{
"name": "three-to-cannon",
"version": "1.1.0",
"version": "1.1.1",
"description": "Convert a THREE.Mesh to a CANNON.Shape.",

@@ -5,0 +5,0 @@ "main": "index.js",

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