diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-07 14:16:17 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-07 14:16:17 -0400 |
| commit | 366761197034a20d444282431e4a8edeb7882840 (patch) | |
| tree | 63d7b11eccbb499aef8f5afc3634945c63c14ff5 /scripts/cameras/plane_armcam.gd | |
| parent | c232b92e2dde1277324d1f89d0e75ae641e4ac3b (diff) | |
whoops, fixed reorg
Diffstat (limited to 'scripts/cameras/plane_armcam.gd')
| -rw-r--r-- | scripts/cameras/plane_armcam.gd | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/cameras/plane_armcam.gd b/scripts/cameras/plane_armcam.gd deleted file mode 100644 index edb0284..0000000 --- a/scripts/cameras/plane_armcam.gd +++ /dev/null @@ -1,26 +0,0 @@ -extends SpringArm - - - -# Called when the node enters the scene tree for the first time. -func _ready(): - Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) - $ClippedCamera.add_exception(get_parent()) - add_excluded_object(get_parent().get_rid()) - - -#func _process(delta): - - -func _input(event): - if $ClippedCamera.current: - if Input.is_action_just_pressed("menu"): #toggle mouse capture on esc - if Input.get_mouse_mode() == Input.MOUSE_MODE_VISIBLE: - Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) - else: - Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) - - if Input.get_mouse_mode() == Input.MOUSE_MODE_CAPTURED: - if event is InputEventMouseMotion: - rotation_degrees.x = clamp(rotation_degrees.x-event.relative.y*0.1,-70,70) - rotation_degrees.y -= event.relative.x*0.1 |
