Is CharacterController.Move broken or did I do something wrong

I was trying to use CharacterController but my player kept sliding and teleporting back to fixed location when I pressed any movement key. This was the line of code that I changed

controller.Move(moveDir.normalized * speed * Time.deltaTime);

I changed that to this and now everything works perfectly fine :

transform.position += (moveDir.normalized * speed * Time.deltaTime);

was I doing something wrong? Is the new line I wrote okay to use? Thank you

You probably have some other bug or issues in your setup.

If you just need a simple CC, help yourself… here’s two:

If you would prefer something more full-featured here is a super-basic starter prototype FPS based on Character Controller (BasicFPCC):

That one has run, walk, jump, slide, crouch… it’s crazy-nutty!!

1 Like