otherotherjosh / GTS

welcome to GTS
1 stars 0 forks source link

Create character controller #14

Closed otherotherjosh closed 1 week ago

otherotherjosh commented 2 weeks ago

This branch adds the GameObject Player with a character controller component and a camera attached, so that the player can walk and look around in the scene. It's a prefab so we can have it in any scene that needs it and keep the controls consistent between them. We added the Input System Package for ease of use (for us devs :D) PlayerMovement.cs controls the walking around and adds gravity to the player object. PlayerRotation.cs controls the looking direction of the camera (up/down) and the player object (left/right).