schteppe / cannon.js

A lightweight 3D physics engine written in JavaScript.
http://schteppe.github.com/cannon.js
MIT License
4.7k stars 707 forks source link

Box to Trimesh Collisions #396

Open ghost opened 6 years ago

ghost commented 6 years ago

How feasible is it that Box to TriMesh collision can be added to the library? It looks like it hasn't been developed for over 2 years so I'm guessing that it is unlikely. But it would be very useful. Sphere to TriMesh is a bit limiting.

swift502 commented 6 years ago

Yes, I think it's unlikely. Apparently there were attempts at convex to Trimesh collisions, but it's all commented out.

https://github.com/schteppe/cannon.js/blob/569730f94a1d9da47967a24fad0323ef7d5b4119/src/world/Narrowphase.js#L1396-L1414

From what I understand schteppe isn't entirely done with Cannon, but he's busy with other things at the moment.

Have you heard of Ammo.js? It definitely supports Box to Trimesh, as well as any other collision pair you can think of, but I did find it to be lacking in other areas.

ghost commented 6 years ago

Thanks for the advice.

On 20 Sep 2018, at 10:37, swift502 notifications@github.com wrote:

Yes, I think it's unlikely. Apparently there were attempts at convex to Trimesh collisions, but it's all commented out.

https://github.com/schteppe/cannon.js/blob/569730f94a1d9da47967a24fad0323ef7d5b4119/src/world/Narrowphase.js#L1396-L1414 https://github.com/schteppe/cannon.js/blob/569730f94a1d9da47967a24fad0323ef7d5b4119/src/world/Narrowphase.js#L1396-L1414 From what I understand schteppe isn't entirely done with Cannon, but he's busy with other things at the moment.

Have you heard of Ammo.js https://github.com/kripken/ammo.js? It definitely has Box to Trimesh collisions, but I found it to be lacking in many other areas.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/schteppe/cannon.js/issues/396#issuecomment-423113879, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUUr4EUBjXd-JX3WTGIOE1mXUhrqEYJks5uc2HEgaJpZM4Wv9Nc.