Coming from Godot: How to setup a centralized state machine for a Player Character

The player controller manages the state stack. You could package the state stack into its own class or just have it be container in the PlayerController.

As for PlayerController vs Character … the PlayerController is the “will of the player” and a character is controlled by the PlayerController.

In Unreal they are default separate classes which makes sense because, among other things, you could switch control between any number of characters.

1 Like