The question is answered, right answer was accepted
Friction problem between the player and a wall
Hello. Since the beginning of the creation of my game, I encounter a problem with the 3D character controller against the walls / cubes (usually smaller than the player to jump over). My problem being this: if I move against this wall and jump at the same time (to jump over it), a kind of unwanted friction occurs. I have attached a screenshot of the scripts of my player and posted an excerpt of my problem on YouTube to be better advised: https://www.youtube.com/watch?v=_KDNzWSg6ss&feature=youtu.be I already tried to put a physic material on my obstacles and change all the values of my character controller, but nothing helps. I can share you my movement script if you wish. Waiting for a solution, thank you in advance. (Sorry for my bad English)
Answer by CodeVector · Nov 27, 2019 at 10:29 PM
I finally found the problem. In my script, i wrote :
_characterController.Move(moveDirection * speedMulti() * deltaTime);
_characterController.Move(new Vector3(0, yMove, 0) * 5f * deltaTime);
I just did this :
_characterController.Move(moveDirection * speedMulti() * deltaTime + new Vector3(0, yMove, 0) * 5f * deltaTime);
And problem solved :-)
Follow this Question
Related Questions
Why won't my character jump smoothly? 0 Answers
Character's jumping mechanism stuck into something invisible 1 Answer
Cant parent the standard FPSController during gameplay 0 Answers
Tree Creator Trees + Built-in Terrain + Character Controller = No collision 0 Answers
Thirdpersoncontroller V. CharacterController class 0 Answers