Fix typo and improve code snippet in documentation for user_scn.flags.
PiperOrigin-RevId: 603685657 Change-Id: Ia6af7a62db3d8955048fae4cbc30209bb1f7efd7
This commit is contained in:
committed by
Copybara-Service
parent
914a001753
commit
fe57ae498f
+2
-1
@@ -137,7 +137,8 @@ attributes:
|
||||
with mujoco.viewer.launch_passive(m, d, key_callback=key_callback) as viewer:
|
||||
|
||||
# Enable wireframe rendering of the entire scene.
|
||||
v.user_scn.flags[mujoco.mjtRndFlag.mjRND_WIREFRAME] = 1
|
||||
viewer.user_scn.flags[mujoco.mjtRndFlag.mjRND_WIREFRAME] = 1
|
||||
viewer.sync()
|
||||
|
||||
while viewer.is_running():
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user