Audio system
This commit is contained in:
parent
b0ba8adcd7
commit
de2736c701
38 changed files with 2538 additions and 78 deletions
|
|
@ -2,9 +2,6 @@ extends Camera3D
|
|||
|
||||
class_name PlayerCamera
|
||||
|
||||
@export var SENSITIVITY = 0.005
|
||||
|
||||
|
||||
var vertical_compensation : float
|
||||
var compensation_tween: Tween
|
||||
var compensate: bool = false
|
||||
|
|
@ -33,7 +30,7 @@ func _input(event: InputEvent) -> void:
|
|||
if not is_multiplayer_authority() or disabled:
|
||||
return
|
||||
if event is InputEventMouseMotion:
|
||||
rotate_camera(-event.relative.x * SENSITIVITY,-event.relative.y * SENSITIVITY)
|
||||
rotate_camera(-event.relative.x * ClientSettings.SENSITIVITY,-event.relative.y * ClientSettings.SENSITIVITY)
|
||||
|
||||
func rotate_camera(x,y) -> void:
|
||||
get_parent().rotate_y(x)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue