Skip to content

Commit 9450721

Browse files
authored
Making SolverGenericContact's contact_id public. (#888)
1 parent e40d3a9 commit 9450721

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
`IntegrationParameters::softness` and `GenericJoint::softness` fields (#789).
2020
- Removed `IntegrationParameters::joint_natural_frequency` and `IntegrationParameters::joint_damping_ratio` in favor of
2121
per-joint softness coefficients `GenericJoint::softness` (#789).
22+
- Make `SolverContact::contact_id` public so that user code knows what geometric contact it originates from (#888).
2223

2324
## v0.30.1 (17 Oct. 2025)
2425

src/geometry/contact_pair.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ pub struct SolverContactGeneric<N: SimdRealCopy, const LANES: usize> {
394394
/// This isn’t a bool for optimizations purpose with SIMD.
395395
pub is_new: N, // 1/1
396396
/// The index of the manifold contact used to generate this solver contact.
397-
pub(crate) contact_id: [u32; LANES], // 1/1
397+
pub contact_id: [u32; LANES], // 1/1
398398
#[cfg(feature = "dim3")]
399399
pub(crate) padding: [N; 1],
400400
}

0 commit comments

Comments
 (0)