You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vmas/simulator/scenario.py
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@
14
14
AGENT_OBS_TYPE,
15
15
AGENT_REWARD_TYPE,
16
16
INITIAL_VIEWER_SIZE,
17
-
VIEWER_MIN_ZOOM,
17
+
VIEWER_DEFAULT_ZOOM,
18
18
)
19
19
20
20
iftyping.TYPE_CHECKING:
@@ -46,8 +46,10 @@ def __init__(self):
46
46
self._world=None
47
47
self.viewer_size=INITIAL_VIEWER_SIZE
48
48
"""The size of the rendering viewer window. This can be changed in the :class:`~make_world` function. """
49
-
self.viewer_zoom=VIEWER_MIN_ZOOM
50
-
"""The zoom of the rendering camera. This can be changed in the :class:`~make_world` function. """
49
+
self.viewer_zoom=VIEWER_DEFAULT_ZOOM
50
+
"""The zoom of the rendering camera (a lower value means more zoom). This can be changed in the :class:`~make_world` function. """
51
+
self.render_origin= (0.0, 0.0)
52
+
"""The origin of the rendering camera when ``agent_index_to_focus`` is None in the ``render()`` arguments. This can be changed in the :class:`~make_world` function. """
51
53
self.plot_grid=False
52
54
"""Whether to plot a grid in the scenario rendering background. This can be changed in the :class:`~make_world` function. """
0 commit comments