Skip to content

Conversation

ThierryBerger
Copy link
Contributor

@ThierryBerger ThierryBerger commented Jun 11, 2025

{
constraint.elements[k].tangent_part.impulse =
manifold_point.warmstart_tangent_impulse;
constraint.elements[k].tangent_part.impulse_accumulator = na::zero();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two body constraints and generic body constraints may benefit from the same reset. Also, a deconstructing pattern may help with making sure we don't forget to reset any fields.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same should be done for Simd constraints, as the impulse accumulators in the tangent part are also never re-set from NaN

@bcolloran
Copy link

hi @Vrixyz , thank you so much for looking in to this!

I would be happy to write up the changelog update if that would help get this over the line?

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.

incorrect tangent_impulse reported by contact graph
3 participants