MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / on_move

Method on_move

dm_control/viewer/viewer.py:531–536  ·  view source on GitHub ↗

Translates mouse moves to selected object movements.

(self, position, translation)

Source from the content-addressed store, hash-verified

529 self._perturb.end_move()
530
531 def on_move(self, position, translation):
532 """Translates mouse moves to selected object movements."""
533 del position
534 if self._perturb is not None and self._action.in_progress:
535 viewport_offset = self._viewport.screen_to_viewport(translation)
536 self._perturb.tick_move(viewport_offset)
537
538 @property
539 def perturbation(self):

Callers

nothing calls this directly

Calls 2

screen_to_viewportMethod · 0.80
tick_moveMethod · 0.80

Tested by

no test coverage detected