Render perturbation box as a wireframe.
PiperOrigin-RevId: 930707140 Change-Id: Iab3577c8b45a235870f57001d38b6b1cd8acd170
This commit is contained in:
committed by
Copybara-Service
parent
37084a5c0b
commit
a2abaf7aef
@@ -1880,7 +1880,7 @@ static void addPerturbGeoms(const mjModel* m, mjData* d, const mjvOption* vopt,
|
||||
mjtNum mat[9];
|
||||
mju_quat2Mat(mat, pert->refquat);
|
||||
mju_addTo3(pos, d->xipos+3*pert->select);
|
||||
mjv_initGeom(thisgeom, mjGEOM_BOX, sz, pos, mat, rgba);
|
||||
mjv_initGeom(thisgeom, mjGEOM_LINEBOX, sz, pos, mat, rgba);
|
||||
|
||||
releaseGeom(&thisgeom, scn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user