For more information and source code, head on over to https://ssatguru.github.io/BabylonJS-CharacterController/