Transforms object's location/rotation by the specified amount.
(self, viewport_offset)
| 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.""" |
no outgoing calls