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

Method tick_move

dm_control/viewer/renderer.py:255–260  ·  view source on GitHub ↗

Transforms object's location/rotation by the specified amount.

(self, viewport_offset)

Source from the content-addressed store, hash-verified

253 self._perturb.active = mujoco.mjtPertBit.mjPERT_ROTATE
254
255 def tick_move(self, viewport_offset):
256 """Transforms object's location/rotation by the specified amount."""
257 if self._action and self._action != mujoco.mjtMouse.mjMOUSE_NONE:
258 mujoco.mjv_movePerturb(self._model.ptr, self._data.ptr, self._action,
259 viewport_offset[0], viewport_offset[1],
260 self._scene.ptr, self._perturb.ptr)
261
262 def end_move(self):
263 """Ends a movement operation."""

Calls

no outgoing calls