Set orientation type in composite box. Fixes #1732.
PiperOrigin-RevId: 643937520 Change-Id: I9ba9d9a8feae6815df35c5d21b0314165713c9d6
This commit is contained in:
committed by
Copybara-Service
parent
19388eee0c
commit
f15b6e5e21
@@ -1156,6 +1156,7 @@ bool mjCComposite::MakeBox(mjCModel* model, mjsBody* body, char* error, int erro
|
||||
BoxProject(b->pos);
|
||||
|
||||
// reorient body
|
||||
b->alt.type = mjORIENTATION_ZAXIS;
|
||||
mjuu_copyvec(b->alt.zaxis, b->pos, 3);
|
||||
mjuu_normvec(b->alt.zaxis, 3);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user