cannon.js icon indicating copy to clipboard operation
cannon.js copied to clipboard

Box to Trimesh Collisions

Open ghost opened this issue 7 years ago • 2 comments
trafficstars

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.

ghost avatar Sep 19 '18 11:09 ghost

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.

swift502 avatar Sep 20 '18 09:09 swift502

Thanks for the advice.

On 20 Sep 2018, at 10:37, swift502 [email protected] 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.

ghost avatar Sep 20 '18 10:09 ghost