Compare commits
1 commit
f93e3ff992
...
cf14e5d398
| Author | SHA1 | Date | |
|---|---|---|---|
| cf14e5d398 |
1 changed files with 2 additions and 3 deletions
|
|
@ -7,7 +7,6 @@ var locked_mouse_positon = Vector2(0,0)
|
||||||
var mouse_locked = false
|
var mouse_locked = false
|
||||||
var mouse_x_velocity = 0
|
var mouse_x_velocity = 0
|
||||||
var mouse_y_velocity = 0
|
var mouse_y_velocity = 0
|
||||||
|
|
||||||
var zoom_min = 4
|
var zoom_min = 4
|
||||||
var zoom_max = 100
|
var zoom_max = 100
|
||||||
var current_zoom = 8
|
var current_zoom = 8
|
||||||
|
|
@ -65,5 +64,5 @@ func _process(delta):
|
||||||
if Input.is_action_pressed("cam_reset"):
|
if Input.is_action_pressed("cam_reset"):
|
||||||
reset()
|
reset()
|
||||||
|
|
||||||
current_zoom = clamp(current_zoom,zoom_min,zoom_max)
|
current_zoom = clamp(current_zoom, zoom_min, zoom_max)
|
||||||
$InnerGimbal/Camera3D.position = Vector3($InnerGimbal/Camera3D.position.x,current_zoom,current_zoom)
|
$InnerGimbal/Camera3D.position = Vector3($InnerGimbal/Camera3D.position.x, current_zoom, current_zoom)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue