Skip to content

Commit e65843c

Browse files
committed
Re-introduce contact force visualization
1 parent e2bbb71 commit e65843c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mujoco_viewer/mujoco_viewer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ def _key_callback(self, window, key, scancode, action, mods):
112112
elif key == glfw.KEY_C:
113113
self._contacts = not self._contacts
114114
self.vopt.flags[mujoco.mjtVisFlag.mjVIS_CONTACTPOINT] = self._contacts
115+
self.vopt.flags[mujoco.mjtVisFlag.mjVIS_CONTACTFORCE] = self._contacts
115116
elif key == glfw.KEY_J:
116117
self._joints = not self._joints
117118
self.vopt.flags[mujoco.mjtVisFlag.mjVIS_JOINT] = self._joints

0 commit comments

Comments
 (0)