Skip to content

Commit 3ae2e0b

Browse files
committed
better position doc string as part of #2558
1 parent feebf7c commit 3ae2e0b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

arcade/camera/camera_2d.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,13 @@ def projection_data(self) -> OrthographicProjectionData:
644644

645645
@property
646646
def position(self) -> Vec2:
647-
"""The 2D world position of the camera along the X and Y axes."""
647+
"""
648+
The 2D position of the camera.
649+
650+
This is in world space, so the same as :py:class:`Sprite` and draw commands.
651+
The default projection is a :py:func:`XYWH` rect positioned at (0, 0) so the
652+
position of the camera is the center of the screen.
653+
"""
648654
return Vec2(self._camera_data.position[0], self._camera_data.position[1])
649655

650656
# Setter with different signature will cause mypy issues

0 commit comments

Comments
 (0)