-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
Unsupported collisions between Trimesh and Custom #773
Comments
We can discuss your original problem in this thread: Root issueMy understanding is that your shape not supporting Could your shape implement this function ?
I think you're correct, but you might be able to have your custom shape bail out its implementations to Other ideasSpoiler for probably not a good attack angle ⬇️
That's definitely not an ideal solution, but could help understanding the problem space: You could implement your own QueryDispatcher and feed it to the different relevant interested containers (ccdsolver, narrowphase). I'm not sure exactly if we're lacking information from types or if this issue "only" needs a non-invasive implementation effort. |
Thank you for the quick response!
I don't this so. The polygonal feature map is for convex objects only.
I'm not quite seeing how this would work. I can't piggy back on the built-in shape because my height field is curved.
That's a possibility indeed. If rapier/parry doesn't want to have colliders implementable in user space, I'm forced to essentially go this route. |
Thanks for the precisions.
I fail to see how an implementation of a collider helps in this case, maybe "true custom shapes contacts" would be a better term ? To my understanding, this The best upstream task I can come up with would be an extensible
|
Yes, I meant to write "true custom shape contacts". Thanks for correction! Currently trying to implement a |
Actually, the problem might be deeper than we assumed. If we look at the call stack again, we can notice |
I'm implementing a custom collider, which is essentially a heightmap over a cylinder surface. Got stuck for not seeing
project_local_point
being called, and decided to debug Rapier a bit. Reached to this step:In this
contact_manifold_convex_convex
function, we are handling different types of shapes. It has this default handler:I'm reading it as: rapier only supports custom shapes that have polygonal features. I.e. it's impossible today to even implement an existing heightmap as a custom shape. Is my reading correct? Are there any plans to support true custom shapes? I'm not asking for crazy things, just at least to have an ability to implement any of the existing shapes myself, if needed.
This is a bit of a blocker for me currently in kvark/vandals-and-heroes#3.
The text was updated successfully, but these errors were encountered: