three-to-cannon
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -13,2 +13,4 @@ var CANNON = require('cannon'), | ||
// TEST TEST TEST TEST | ||
/** | ||
@@ -324,3 +326,3 @@ * Given a THREE.Object3D instance, creates a corresponding CANNON shape. | ||
} | ||
return geometry.attributes.position.array; | ||
return (geometry.attributes.position || {}).array || []; | ||
} | ||
@@ -327,0 +329,0 @@ |
{ | ||
"name": "three-to-cannon", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Convert a THREE.Mesh to a CANNON.Shape.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"postversion": "git push && git push --tags && npm publish" | ||
}, | ||
@@ -27,5 +28,5 @@ "repository": { | ||
"homepage": "https://github.com/donmccurdy/three-to-cannon#readme", | ||
"dependencies": { | ||
"cannon": "^0.6.2" | ||
"peerDependencies": { | ||
"cannon": "github:schteppe/cannon.js#v0.6.2-dev1" | ||
} | ||
} |
# three-to-cannon | ||
Convert a THREE.Mesh to a CANNON.Shape. | ||
Convert a THREE.Mesh to a CANNON.Shape, and optional optimizations with simplified shapes. | ||
@@ -5,0 +5,0 @@ ## Usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22539
606
- Removedcannon@^0.6.2
- Removedcannon@0.6.2(transitive)