sdsmith / Modern-Snowfare

0 stars 0 forks source link

Not using CharacterController for entities with movement #1

Closed sdsmith closed 7 years ago

sdsmith commented 7 years ago

We are currently using characterController to control the player. It uses transform.Translate to move the object model.

Unity uses the built in class CharacterController to handle entity movement. It comes with a ton of useful methods. We need to switch our character to use a CharacterController with GetComponent.

https://docs.unity3d.com/ScriptReference/CharacterController.html

sdsmith commented 7 years ago

Implemented. See 2b23f151b82aa2e66b65b4edfd9cf5506e8a9aed.

sdsmith commented 7 years ago

Character had a Rigidbody, which should not be mixed with a CharacterCollider. Have readapted the movement to be Physics based using the Rigidbody system.