Skip to content

Commit

Permalink
Merge pull request #233 from mrezai/fix-player-rotation
Browse files Browse the repository at this point in the history
Fix player rotation after scene transitions
  • Loading branch information
Phazorknight authored Jul 19, 2024
2 parents 450ce3d + 941c189 commit 7349a6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion COGITO/SceneManagement/cogito_scene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit 7349a6b

Please sign in to comment.