Socket
Socket
Sign inDemoInstall

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.0.3 to 1.0.4

6

index.js

@@ -257,5 +257,9 @@ var CANNON = require('cannon'),

function createBoundingSphereShape (object, options) {
if (options.sphereRadius) {
return new CANNON.Sphere(options.sphereRadius);
}
var geometry = getGeometry(object);
if (!geometry) return null;
geometry.computeBoundingSphere();
return new CANNON.Sphere(options.sphereRadius || geometry.boundingSphere.radius);
return new CANNON.Sphere(geometry.boundingSphere.radius);
}

@@ -262,0 +266,0 @@

2

package.json
{
"name": "three-to-cannon",
"version": "1.0.3",
"version": "1.0.4",
"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