extends CharacterBody3D
-signal playerReady
signal playerTurn
func _ready() -> void:
_springArm.spring_length = distance
- playerReady.emit(self)
func _input(event: InputEvent) -> void:
if event.is_action_pressed("player_left"):
- playerTurn.emit(self)
global_rotate(Vector3.UP, PI/2)
- elif event.is_action_pressed("player_right"):
playerTurn.emit(self)
+ elif event.is_action_pressed("player_right"):
global_rotate(Vector3.UP, -PI/2)
+ playerTurn.emit(self)
func _physics_process(_delta: float) -> void: