tweak camera values again
This commit is contained in:
@@ -44,7 +44,7 @@ shadow_enabled = true
|
|||||||
[node name="MainCamera" type="Camera3D" parent="."]
|
[node name="MainCamera" type="Camera3D" parent="."]
|
||||||
transform = Transform3D(1, 0, 0, 0, 0.819152, 0.573576, 0, -0.573576, 0.819152, 0, 1, 2)
|
transform = Transform3D(1, 0, 0, 0, 0.819152, 0.573576, 0, -0.573576, 0.819152, 0, 1, 2)
|
||||||
current = true
|
current = true
|
||||||
far = 100.0
|
far = 200.0
|
||||||
script = ExtResource("1_xl1ut")
|
script = ExtResource("1_xl1ut")
|
||||||
|
|
||||||
[node name="Units" type="Node" parent="."]
|
[node name="Units" type="Node" parent="."]
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
extends Camera3D
|
extends Camera3D
|
||||||
|
|
||||||
const ZOOM_SPEED: float = 0.25
|
const ZOOM_SPEED: float = 0.1
|
||||||
## How many pixels the mouse needs to be away
|
## How many pixels the mouse needs to be away
|
||||||
## from the screen edge to move the camera.
|
## from the screen edge to move the camera.
|
||||||
const EDGE_THRESHOLD: float = 10
|
const EDGE_THRESHOLD: float = 10
|
||||||
@@ -11,14 +11,14 @@ const EDGE_THRESHOLD: float = 10
|
|||||||
@export var zoom_in_speed: float = 5
|
@export var zoom_in_speed: float = 5
|
||||||
|
|
||||||
@export var zoom_out_distance: float = 90
|
@export var zoom_out_distance: float = 90
|
||||||
@export var zoom_out_fov: float = 20
|
@export var zoom_out_fov: float = 30
|
||||||
@export var zoom_out_angle: float = -0.25 * PI
|
@export var zoom_out_angle: float = -0.25 * PI
|
||||||
@export var zoom_out_speed: float = 30
|
@export var zoom_out_speed: float = 35
|
||||||
|
|
||||||
var target_position: Vector3 = Vector3(0, 0, 0)
|
var target_position: Vector3 = Vector3(0, 0, 0)
|
||||||
var mouse_position: Vector2 = Vector2()
|
var mouse_position: Vector2 = Vector2()
|
||||||
## 0 = zoomed in. 1 = zoomed out.
|
## 0 = zoomed in. 1 = zoomed out.
|
||||||
var zoom_value: float = 0.25
|
var zoom_value: float = 0.3
|
||||||
|
|
||||||
func _process(delta: float) -> void:
|
func _process(delta: float) -> void:
|
||||||
handle_movement(delta)
|
handle_movement(delta)
|
||||||
|
|||||||
Reference in New Issue
Block a user