Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug related to the law of action and reaction in btGeneric6DofSpring2Constraint. #4438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yahei
Copy link

@yahei yahei commented Mar 30, 2023

The relA and relB in calculateJacobi() are vectors used to calculate the torque that the linearAxis applies to the bodies.
Therefore, relA and relB should point to the same coordinate, but they were pointing to the connection points of bodyA and bodyB respectively.
This caused a bug where the positions where the action and reaction forces were applied were shifted when the relative positions of the bodies changed.

To fix this, relA was corrected to point to the connection point of bodyB.

…pring2Constraint.

The relA and relB in calculateJacobi() are vectors used to calculate the torque that the linearAxis applies to the bodies.
Therefore, relA and relB should point to the same coordinate, but they were pointing to the connection points of bodyA and bodyB respectively.
This caused a bug where the positions where the action and reaction forces were applied were shifted when the relative positions of the bodies changed.

To fix this, relA was corrected to point to the connection point of bodyB.
@yahei
Copy link
Author

yahei commented Oct 9, 2023

fig

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.

None yet

1 participant