hello I’m new to unity and i stuck for hours searching for a method to move a vehicle but every method has cons
because when I use addforce method it does an annoying drifting effect . i tried to rid of it with drag but it is impossible to control especially with changing speed (it make the object ignore gravity).
i tried change velocity and rigidbody.movePosition() but they override gravity
and of course the translate method doesn’t detect colliders .
so is there any way to have this vehicle move respecting gravity with no drifting affect ??
thank you
without rigidbodys.
unless your vehicle is a cube, i don’t think rigidbodys match here at all.
the best way to do this (in my opinion) would to use a character controller and overall controller.move() or controller.translate();
also writing the gravity of the vehicle yourself would work. (per frame: transform.position -= gravity * time.deltaTime;)