X-Git-Url: http://git.purplebirdman.com/lightcycles.git/blobdiff_plain/3e15374f814e7b21fc895b09ed77ef983f392a93..010b3d611cf1bfc9b1b0e715206b484844d5ad65:/player/player.gd diff --git a/player/player.gd b/player/player.gd index 1c842d4..4378676 100644 --- a/player/player.gd +++ b/player/player.gd @@ -2,7 +2,6 @@ class_name Player extends CharacterBody3D -signal playerReady signal playerTurn @@ -17,16 +16,15 @@ 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: