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

Generalized heightmap collision #777

Open
kvark opened this issue Dec 26, 2024 · 0 comments
Open

Generalized heightmap collision #777

kvark opened this issue Dec 26, 2024 · 0 comments

Comments

@kvark
Copy link
Contributor

kvark commented Dec 26, 2024

Branching off from #773

I'm looking at the code for Heightmap, trying to see how this would be with a different kind of heightmap (that is put on top of a cylinder instead of a plane).
I see that PersistentQueryDispatcher::contact_manifolds simply goes through contact_manifolds_heightfield_shape and contact_manifolds_heightfield_composite_shape for heightfields. These methods seem general enough.

Would it be reasonable to expose them behind a trait? Just like as_support_map exposes a generic interface trait SupportMap, can we have as_heightmap exposing some trait Heightmap?

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

No branches or pull requests

1 participant