Add "cameraid" attribute to visual/global specifying the default camera to use at model load.
PiperOrigin-RevId: 773783069 Change-Id: I2fff2abdceedc982d89cee8d14b95abceea1c113
This commit is contained in:
committed by
Copybara-Service
parent
7dc7a349c5
commit
14dc7c2a60
@@ -183,6 +183,7 @@ static void setf4(float* rgba, float r, float g, float b, float a) {
|
||||
// set visual options to default values
|
||||
void mj_defaultVisual(mjVisual* vis) {
|
||||
// global
|
||||
vis->global.cameraid = -1;
|
||||
vis->global.orthographic = 0;
|
||||
vis->global.fovy = 45;
|
||||
vis->global.ipd = 0.068;
|
||||
|
||||
Reference in New Issue
Block a user