setmotionJoint and TranslationLimit

This commit is contained in:
Aik-Siong Koh
2024-04-03 13:56:16 -06:00
committed by PaddleStroke
parent bc16f218da
commit 994f90d7ae
8 changed files with 50 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ std::shared_ptr<TranslationLimitIJ> MbD::TranslationLimitIJ::With()
void MbD::TranslationLimitIJ::initializeGlobally()
{
if (constraints->empty()) {
auto transConIJ = TranslationConstraintIJ::With(frmJ, frmI, 2);
auto transConIJ = TranslationConstraintIJ::With(frmI, frmJ, 2);
transConIJ->setConstant(limit);
addConstraint(transConIJ);
this->root()->hasChanged = true;