Add quadratic interpolation to flex.
PiperOrigin-RevId: 822055781 Change-Id: Ibc252ac560de666b0b28f868e46b88d3ed92f67d
This commit is contained in:
committed by
Copybara-Service
parent
59f14485e0
commit
01d1ac34e0
@@ -462,7 +462,7 @@ void mj_flex(const mjModel* m, mjData* d) {
|
||||
|
||||
// trilinear interpolation
|
||||
else {
|
||||
mjtNum nodexpos[mjMAXFLEXNODES];
|
||||
mjtNum nodexpos[3*mjMAXFLEXNODES];
|
||||
if (m->flex_centered[f]) {
|
||||
for (int i=nstart; i < nend; i++) {
|
||||
mju_copy3(nodexpos + 3*(i-nstart), d->xpos + 3*m->flex_nodebodyid[i]);
|
||||
|
||||
Reference in New Issue
Block a user