2022-01-24 19:04:29 +00:00
|
|
|
extends Camera
|
|
|
|
|
|
|
|
|
|
|
|
func reset() -> void:
|
|
|
|
rotation = Vector3.ZERO
|
|
|
|
rotate(Vector3.UP, deg2rad(180))
|
2022-01-24 19:55:21 +00:00
|
|
|
fov = GlobalSettings.camera_fov
|
|
|
|
translation = Vector3.ZERO
|
|
|
|
translate(
|
|
|
|
Vector3(
|
2022-01-25 08:37:11 +00:00
|
|
|
GlobalSettings.camera_move_horizontal,
|
|
|
|
GlobalSettings.camera_move_vertical,
|
|
|
|
GlobalSettings.camera_move_depth
|
2022-01-24 19:55:21 +00:00
|
|
|
)
|
|
|
|
)
|
2022-01-24 19:04:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
func update_rotation(horizontal: float, vertical: float) -> void:
|
|
|
|
rotate(Vector3.DOWN, horizontal * deg2rad(90))
|
|
|
|
rotate(Vector3.LEFT, vertical * deg2rad(90))
|