three-to-cannon
three-to-cannon copied to clipboard
Convert a THREE.Mesh to a CANNON.Shape.
It looks like there may be some issues with generated convex hulls. When two bodies with generated convex hull shapes collide, the physics simulation stops and the page becomes unresponsive....
Unfortunately, it doesn't seem to be safe to call `clone` on an arbitrary three.js `Object3D`. As a result, creating a box shape fails if you try to create it on...
Need to confirm effects of https://github.com/donmccurdy/three-to-cannon/pull/8, guessing some cases are inconsistent across different shape construction paths currently.
Relevant to this thread: http://www.html5gamedevs.com/topic/24944-cannonjs-heightfield-from-imported-mesh/ Some discussion here: https://github.com/schteppe/cannon.js/issues/221 And several github issues: - https://github.com/donmccurdy/aframe-extras/issues/41 - https://github.com/donmccurdy/aframe-physics-system/issues/9 Also, docs could be improved per cannon issue 222.
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint) | [`5.36.2` -> `5.38.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.36.2/5.38.0) | [](https://docs.renovatebot.com/merge-confidence/)...
- Use connected faces from generated convex hull - Fixes #76 - Generated convex hulls did not have connected faces, which is required for convex-convex collision in cannon-es - Using...
```js let loader = new GLTFLoader(); // Load a glb model loader.load('models/chernovan_nemesis.glb', function (gltf) { // Get the model and its animations let model = gltf.scene; let animations = gltf.animations;...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rimraf](https://redirect.github.com/isaacs/rimraf) | [`5.0.10` -> `6.0.1`](https://renovatebot.com/diffs/npm/rimraf/5.0.10/6.0.1) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/)...
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. Changelog Sourced from micromatch's changelog. [4.0.8] - 2024-08-22 backported CVE-2024-4067 fix (from v4.0.6) over to 4.x branch [4.0.7] - 2024-05-22 this is basically v4.0.5,...