Skip to content

Conversation

@dog-molecule
Copy link
Contributor

Contact manifolds currently contain a list of points that includes predictive points (eg, points which aren't currently colliding, but which Rapier keeps an eye on to ensure stability). The problem is, when we receive those contact manifolds (in my case, using Godot-Rapier), we then have to filter out those predictive points manually.

Rapier already has methodology for filtering out predictive points; after this filtering process, it uses the remaining verified contact points to generate SolverContacts. Each SolverContact contains a contact_id, which corresponds to the ID of the manifold contact used to generate it. So if we had access to this contact_id, we would be able to simply process only those contact points that generated legitimate solver contacts-- we could avoid having to duplicate Rapier's filtering logic. The only problem is, contact_id is currently only public within its crate. So this PR just makes it public. I think this is ok; I don't see a way for it to backfire personally, but let me know if there's something I've missed.

@sebcrozet sebcrozet force-pushed the publicize_solver_contact_id branch from c96a149 to 0407267 Compare November 21, 2025 15:32
@sebcrozet sebcrozet marked this pull request as ready for review November 21, 2025 15:33
@sebcrozet sebcrozet force-pushed the publicize_solver_contact_id branch from 0407267 to f551c7e Compare November 21, 2025 15:50
@sebcrozet sebcrozet merged commit 9450721 into dimforge:master Nov 21, 2025
8 checks passed
@sebcrozet
Copy link
Member

Thanks!

@sebcrozet sebcrozet mentioned this pull request Nov 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants