Skip to content

[constraint] Add the option to normalize the compliance block matrix before inversion#26

Merged
epernod merged 3 commits into
masterfrom
th-scaleMatrix
Jul 13, 2026
Merged

[constraint] Add the option to normalize the compliance block matrix before inversion#26
epernod merged 3 commits into
masterfrom
th-scaleMatrix

Conversation

@th-skam

@th-skam th-skam commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

More of a hack, less of a fix, to be used for some particular cases.

Depending on how the scene is set up (i.e. scaling, physical parameters, units) the block with the compliances might have a low-magnitude determinant. In invertMatrix() there is a check for that magnitude. If it's too small, it gets rejected and we end up with a null matrix.

Normally, we should build scenes properly and scale them well. However there can be situations where this is not possible (Unity pipeline, haptics scale etc). So the PR adds the option to scale the matrix before inverting it. Default is false.

@epernod epernod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small suggestion for users

Comment thread src/ConstraintGeometry/constraint/InsertionResolution.h Outdated
Co-authored-by: erik pernod <erik.pernod@gmail.com>
@epernod epernod merged commit 4c62532 into master Jul 13, 2026
10 checks passed
@epernod epernod deleted the th-scaleMatrix branch July 13, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants