I have seen so many complicated videos on how to add gravity to a character controller component, its always a blessing to find the golden youtube video where someone explains it in less then 5 minutes and it actually works.
Dude, where is the direction variable?????? I assume its the vector 3? when I try to use it in the apply gravity method, it does not exist, and I looked through your code, and I cant find anywhere where you called it.... why has nobody commented about this
Does this code not mean that the speed value will actually increase the velocity of the y axis aswell since the _direction.y is multiplied with speed? I think i solved my issue with a solution like this characterController.Move((moveDirection * movementSpeed + playerVelocity) * Time.deltaTime); playerVelocity is only ever changing its Y value
Adding a gravity multilpier for a beginner video seems uneeded. Not sure why you added that to just further confuse people and take away from what youre trying to teach. Remember your dealing with beginners and not established ppl with your mindset (even if you think its a good idea).
I have seen so many complicated videos on how to add gravity to a character controller component, its always a blessing to find the golden youtube video where someone explains it in less then 5 minutes and it actually works.
Very well explained, thanks!
boosman...you are the best!
These videos are so well explained, thanks! Qualitycontent
Your lessons help me a lot to learn Unity. Thank you very much )
Waiting for next part !!!
literally you sav my life and mi job :)
You helped me a lot by you kind sharing ;)
why are you checking if the velocity is less than 0 in the script?
Dude, where is the direction variable?????? I assume its the vector 3? when I try to use it in the apply gravity method, it does not exist, and I looked through your code, and I cant find anywhere where you called it.... why has nobody commented about this
Hey! The variable is defined up top, as a Vector3, and the value is being set in the Move() method.
Does this code not mean that the speed value will actually increase the velocity of the y axis aswell since the _direction.y is multiplied with speed?
I think i solved my issue with a solution like this characterController.Move((moveDirection * movementSpeed + playerVelocity) * Time.deltaTime);
playerVelocity is only ever changing its Y value
For some reason my velocity doesn't get to -1, it keeps going down :c
does this need a character controller to work? because i tried it on a normal block and it doesnt work
how to add animation ??
I add animation but animation didnt sotp??
👍👍👍
hmmm i had to make my gravity multiplier like .002 to make it seem normal
Remember to multiply the gravity with Time.deltaTime twice
Adding a gravity multilpier for a beginner video seems uneeded. Not sure why you added that to just further confuse people and take away from what youre trying to teach. Remember your dealing with beginners and not established ppl with your mindset (even if you think its a good idea).
Thank you for the feedback! You are correct, should just keep things as simple as possible. Again, thank you! 🤗
Rigidbody
why you didn't use Physics.gravity.y?