Draw body label at the body frame rather than inertial frame, unless inertia is being visualised.
PiperOrigin-RevId: 507424290 Change-Id: I72ca68e2e47f76c0f70959a1a2c8b5f4b6b6b290
This commit is contained in:
committed by
Copybara-Service
parent
7251e7b900
commit
79fffdc0ae
@@ -706,8 +706,8 @@ void mjv_addGeoms(const mjModel* m, mjData* d, const mjvOption* vopt,
|
||||
|
||||
// construct geom
|
||||
thisgeom->type = mjGEOM_LABEL;
|
||||
mju_n2f(thisgeom->pos, d->xipos+3*i, 3);
|
||||
mju_n2f(thisgeom->mat, d->ximat+9*i, 9);
|
||||
mju_n2f(thisgeom->pos, d->xpos+3*i, 3);
|
||||
mju_n2f(thisgeom->mat, d->xmat+9*i, 9);
|
||||
|
||||
// vopt->label
|
||||
makeLabel(m, mjOBJ_BODY, i, thisgeom->label);
|
||||
|
||||
Reference in New Issue
Block a user