CharacterController move faster on slope with high FPS
Hello everyone. I recently added a big slope in my game and problems don't wait. Example : I am with 60 fps constant. After 1 second, see the image n°1. Another example : I am with 240 fps constant. After 1 second, see the image n°2.
//
As we can see, character controller move a lot faster (only on slope with high angle like 70 and 80) when i have high fps. But in my script, movement is multiplied by Time.deltaTime ! I really don't understand why. This is my script :
Vector3 moveDirection = Vector3.ClampMagnitude(joystick.x * transform.right + joystick.y * transform.forward, 1f);
Vector3 finalMove = moveDirection * speed + new Vector3(0, yMove, 0);
_characterController.Move(finalMove * Time.deltaTime);
With a lot of test, "yMove" is not the problem. For sure. And finally, i don't want to use FixedUpdate function. If anyone can help me i would be very grateful to him.
Thanks in advance for your help ! PS: Sorry for bad english.
Your answer
Follow this Question
Related Questions
Gravity issue on MouvementController using RigidBody when going down a slope 0 Answers
Boat Controller Help 0 Answers
My Character won't jump 0 Answers