Adds missing data

This commit is contained in:
Michel 2025-02-03 19:17:20 +01:00
parent e6391d9fdd
commit 53cdcc3433
620 changed files with 47293 additions and 151 deletions

View file

@ -1,16 +1,25 @@
extends Camera3D
class_name CameraController
@export var PlayerNode: Node3D;
@export var turnSpeed: float = 0.25;
@export var XRotationClamp: Vector2 = Vector2(-90, 90)
var currentRotation: Vector2 = Vector2(0,0);
var enabled: bool = true
func _ready() -> void:
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED;
func disableInput():
enabled = false
func _input(event: InputEvent) -> void:
if not enabled:
return
if event is InputEventKey && event.key_label == KEY_ESCAPE:
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE