Implementing a Physics based character controller part 1

Jaime
Oct 17, 2021

--

First things first. We want our character to move left and right. We currently have a Player as Capsule with Character Controller and Player script attached.

In the player script, we get a handle to the CharacterController and try to get Horizontal input. Whatever value received from the input will be passed to the Move function of CharacterController. For now, speed is set to 1.

With this functionality, I now have a moving player.

--

--

Jaime
Jaime

No responses yet