Move fullinertia from mjCAlternative to mjCBody.
PiperOrigin-RevId: 604607692 Change-Id: Ic2fcc08b9073d01ab190e7acacc3d827dbdfbca4
This commit is contained in:
committed by
Copybara-Service
parent
01439f28b3
commit
737342bdfe
@@ -2551,9 +2551,8 @@ void mjCModel::FuseStatic(void) {
|
||||
}
|
||||
|
||||
// compute principal axes of inertia
|
||||
mjCAlternative alt;
|
||||
mjuu_copyvec(alt.fullinertia, toti, 6);
|
||||
const char* err1 = alt.Set(par->iquat, par->inertia, degree, euler);
|
||||
mjuu_copyvec(par->fullinertia, toti, 6);
|
||||
const char* err1 = par->FullInertia(par->iquat, par->inertia);
|
||||
if (err1) {
|
||||
throw mjCError(NULL, "error '%s' in fusing static body inertias", err1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user