From 945072130fb6d0a2557df83cddfb7aab50917847 Mon Sep 17 00:00:00 2001 From: W <64723479+dog-molecule@users.noreply.github.com> Date: Fri, 21 Nov 2025 17:11:28 +0100 Subject: [PATCH] Making SolverGenericContact's contact_id public. (#888) --- CHANGELOG.md | 1 + src/geometry/contact_pair.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a4ec794..2fcad11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ `IntegrationParameters::softness` and `GenericJoint::softness` fields (#789). - Removed `IntegrationParameters::joint_natural_frequency` and `IntegrationParameters::joint_damping_ratio` in favor of per-joint softness coefficients `GenericJoint::softness` (#789). +- Make `SolverContact::contact_id` public so that user code knows what geometric contact it originates from (#888). ## v0.30.1 (17 Oct. 2025) diff --git a/src/geometry/contact_pair.rs b/src/geometry/contact_pair.rs index 7a6ba71..243f5a7 100644 --- a/src/geometry/contact_pair.rs +++ b/src/geometry/contact_pair.rs @@ -394,7 +394,7 @@ pub struct SolverContactGeneric { /// This isn’t a bool for optimizations purpose with SIMD. pub is_new: N, // 1/1 /// The index of the manifold contact used to generate this solver contact. - pub(crate) contact_id: [u32; LANES], // 1/1 + pub contact_id: [u32; LANES], // 1/1 #[cfg(feature = "dim3")] pub(crate) padding: [N; 1], }