Skip to content

Commit

Permalink
Issue WPI-AIM#196
Browse files Browse the repository at this point in the history
The child body scale was not considered for the joint pivot calculation
  • Loading branch information
adnanmunawar committed Feb 26, 2023
1 parent f7fbc64 commit 18637b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ambf_framework/afFramework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3907,7 +3907,7 @@ bool afJoint::createFromAttribs(afJointAttributes *a_attribs)
m_pvtA = m_afParentBody->getInverseInertialOffsetTransform() * m_pvtA;
m_axisA = m_afParentBody->getInverseInertialOffsetTransform().getBasis() * m_axisA;

m_pvtB = to_btVector(a_attribs->m_childPivot);
m_pvtB = to_btVector(a_attribs->m_childPivot * m_afChildBody->m_scale);
m_axisB = to_btVector(a_attribs->m_childAxis);
m_axisB.normalize();
m_pvtB = m_afChildBody->getInverseInertialOffsetTransform() * m_pvtB;
Expand Down

0 comments on commit 18637b4

Please sign in to comment.