Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concave mesh collisions #100

Open
LaylBongers opened this issue Aug 24, 2018 · 3 comments
Open

Concave mesh collisions #100

LaylBongers opened this issue Aug 24, 2018 · 3 comments

Comments

@LaylBongers
Copy link

This is a fairly common need for a lot of games. I know it's hard to implement well but I feel it's important to have this option for meshes like terrain.

@Rhuagh
Copy link
Collaborator

Rhuagh commented Aug 25, 2018

I would say that terrain being represented with a mesh for collision purposes is rare, it would usually be a heightmap coupled with other shapes for overhangs etc.

But as @kvark noted above, we appreciate help, so feel free to implement something and give us a PR.

@LaylBongers
Copy link
Author

Looking further through how Bullet implements this, it seems to use concave collision detection for this use case, even for heightmaps (though those get some optimization). However the actual implementation goes way over my head, I can't even find where it's located let alone port it.

@LaylBongers
Copy link
Author

I did some further digging, and it seems the ReactPhysics3D library takes the same approach as Bullet (including how it implements concave meshes), but its codebase is much more understandable to take as reference.
https://github.com/DanielChappuis/reactphysics3d

However, I still can't quite understand how the implementation works myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants