Parameters
CameraParameters
Bases: BaseModel
Camera parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
position |
Tuple[float, float, float]
|
The position of the camera. |
required |
yaw |
float
|
The yaw of the camera in degrees. |
required |
pitch |
float
|
The pitch of the camera in degrees. |
required |
field_of_view |
float
|
The field of view of the camera in degrees. This is the extent of the observable world that is seen at any given moment by the camera (or the player's eye) in a game. |
required |
near_plane_of_view_frustum |
float
|
The distance of near clipping plane of the view frustum from the point of view. |
required |
far_plane_of_view_frustum |
float
|
The distance of far clipping plane of the view frustum from the point of view. |
required |
pitch_max |
float
|
The maximum pitch of the camera in degrees. |
required |
Source code in pynecraft/parameters.py
EngineParameters
Bases: BaseModel
PyneCraft engine parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
window_resolution |
Tuple[int, int]
|
The resolution of the window in pixels. |
required |
depth_buffer_size |
int
|
The size of the depth buffer in bits.
A larger depth buffer size can improve the visual quality
of the 3D scene by reducing artifacts such as z-fighting,
where two surfaces are so close together that the depth buffer
cannot distinguish which is in front. Common values for depth
buffer size are |
required |
background_color |
Optional[Tuple[int, int, int]]
|
The background color of the window. |
required |
player_parameters |
FirstPersonPlayerParameters
|
The parameters of the player. |
required |
Source code in pynecraft/parameters.py
FirstPersonPlayerParameters
Bases: BaseModel
First person player parameters.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
player_speed |
float
|
The speed of the player. |
required |
player_rotation_speed |
float
|
The rotation speed of the player. |
required |
mouse_sensitivity |
float
|
The sensitivity of the mouse control. |
required |
camera_parameters |
CameraParameters
|
The parameters of the camera. |
required |