Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rendering contact force problem. #487

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[mod] remove a redundant line
  • Loading branch information
iZuno-K committed Nov 28, 2019
commit 4d89b7661f65f6ef561ad69648aecdf46520bb0d
3 changes: 1 addition & 2 deletions mujoco_py/mjviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ def key_callback(self, window, key, scancode, action, mods):
elif key == glfw.KEY_F: # Speeds up simulation.
self._run_speed *= 2.0
elif key == glfw.KEY_C: # Displays contact forces.
vopt = self.vopt
vopt.flags[const.VIS_CONTACTFORCE] = not vopt.flags[const.VIS_CONTACTFORCE]
self.vopt.flags[const.VIS_CONTACTFORCE] = not self.vopt.flags[const.VIS_CONTACTFORCE]
elif key == glfw.KEY_D: # turn off / turn on rendering every frame.
self._render_every_frame = not self._render_every_frame
elif key == glfw.KEY_E:
Expand Down