From 941c1895d05ba0b5219203a326ac9b182a8c6bef Mon Sep 17 00:00:00 2001 From: Mohammad Rezai Date: Fri, 19 Jul 2024 17:56:33 +0330 Subject: [PATCH] Fix player rotation after scene transitions --- COGITO/SceneManagement/cogito_scene.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/COGITO/SceneManagement/cogito_scene.gd b/COGITO/SceneManagement/cogito_scene.gd index beda326a..02c8b836 100644 --- a/COGITO/SceneManagement/cogito_scene.gd +++ b/COGITO/SceneManagement/cogito_scene.gd @@ -8,7 +8,7 @@ func move_player_to_connector(connector_name:String): if node.get_name() == connector_name: print("Connector found, moving player to ", node.get_name()) CogitoSceneManager._current_player_node.global_position = node.global_position - CogitoSceneManager._current_player_node.global_rotation = node.global_rotation + CogitoSceneManager._current_player_node.body.global_rotation = node.global_rotation return print("No connector with name ", connector_name, " found.")