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