- Home /
Question by
NightyTheVampire · Apr 19, 2021 at 06:01 PM ·
charactercontrollercharacter controllercharacter movement
Making my character keep velocity in air.
This has been asked before I know but I have never been able to make it work Ive spent hours working on this and no luck this is my code.. sorry if it looks like spaghetti. Also Thanks.
Comment
Answer by Nosthy · Apr 20, 2021 at 11:54 AM
I would recommend using a rigidbody instead of a character controller. Here is a great tutorial on how to do that https://www.youtube.com/watch?v=nfX8cnRxrHg
Oh thanks time to rewrite my script yet again XD.
@Nosthy Ive found that the movement is very jittery do you know of a fix?
try to incrase the drag and angular drag on your rigidbody. the problem is you are really slow now but there is an easy fix for that. just multiply speed with rigidbody.drag in your movement scriptl like in this example.
void Start()
{
speed = speed * rigidBody.drag;
}