n5ro / aframe-physics-system

Physics system for A-Frame VR, built on CANNON.js.
https://n5ro.github.io/aframe-physics-system/
MIT License
505 stars 136 forks source link

Cones have Inverted physics #160

Closed VGBoy closed 3 years ago

VGBoy commented 3 years ago

While testing something with dynamic bodies and static bodies. I have found that dynamic body physics are inverted for cone primitives. This seems to only apply to those shapes, as others have proper hitboxes. Cone Physics Reversed.zip

MignonBelongie commented 3 years ago

See https://github.com/donmccurdy/three-to-cannon/pull/27 Unfortunately, even if it gets fixed right away, it won't immediately fix the problem here, since we're not (yet) using the latest version of three-to-cannon. If you need a temporary workaround, you can edit your local copy of aframe-physics-system/node_modules/three-to-cannon/dist/three-pathfinding.js, replacing 90 with -90.