Compare commits
1 commit
f93e3ff992
...
350e17656b
| Author | SHA1 | Date | |
|---|---|---|---|
| 350e17656b |
1 changed files with 11 additions and 1 deletions
|
|
@ -7,10 +7,15 @@ 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
|
||||||
|
<<<<<<< HEAD
|
||||||
var zoom_min = 4
|
var zoom_min = 4
|
||||||
var zoom_max = 100
|
var zoom_max = 100
|
||||||
var current_zoom = 8
|
var current_zoom = 8
|
||||||
|
=======
|
||||||
|
var zoom_min = 0
|
||||||
|
var zoom_max = 100
|
||||||
|
var current_zoom = 0
|
||||||
|
>>>>>>> 4e8b3979486122df89f015f2c767e06df233424f
|
||||||
|
|
||||||
func reset():
|
func reset():
|
||||||
basis = Basis()
|
basis = Basis()
|
||||||
|
|
@ -65,5 +70,10 @@ func _process(delta):
|
||||||
if Input.is_action_pressed("cam_reset"):
|
if Input.is_action_pressed("cam_reset"):
|
||||||
reset()
|
reset()
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
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)
|
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)
|
||||||
|
>>>>>>> 4e8b3979486122df89f015f2c767e06df233424f
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue