From 9488f7bf53dadc934d63d0281fdb8778823f0918 Mon Sep 17 00:00:00 2001 From: brendan c Date: Thu, 17 Apr 2025 11:08:00 -0700 Subject: [PATCH] add getter for `contact_id` field of `SolverContact` --- src/geometry/contact_pair.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/geometry/contact_pair.rs b/src/geometry/contact_pair.rs index 3f569b200..0f841d89a 100644 --- a/src/geometry/contact_pair.rs +++ b/src/geometry/contact_pair.rs @@ -327,6 +327,11 @@ impl SolverContact { self.restitution >= 1.0 } } + + /// The index of the manifold contact used to generate this solver contact. + pub fn contact_id(&self) -> u8 { + self.contact_id + } } impl Default for ContactManifoldData {