setmotionJoint and TranslationLimit
This commit is contained in:
committed by
PaddleStroke
parent
bc16f218da
commit
994f90d7ae
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user