diff --git a/CHANGELOG.md b/CHANGELOG.md index a4ec7945a..2fcad1139 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 7a6ba717c..243f5a766 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], }