Add AddFreeJoint and remove isfree from AddJoint.

PiperOrigin-RevId: 604597442
Change-Id: I2fe03cf0f9a59b425080cc5cc12b236fea9c020d
This commit is contained in:
Alessio Quaglino
2024-02-06 03:48:48 -08:00
committed by Copybara-Service
parent 3b2dd06c54
commit 01439f28b3
4 changed files with 23 additions and 13 deletions
+1 -1
View File
@@ -3045,7 +3045,7 @@ void mjXReader::Body(XMLElement* section, mjCBody* pbody, mjCFrame* frame) {
}
// create free joint without defaults
mjCJoint* pjoint = pbody->AddJoint(NULL, true);
mjCJoint* pjoint = pbody->AddFreeJoint();
pjoint->SetFrame(frame);
// save defaults after creation, to make sure writing is ok