Mario kart controller physics
Hello.
I have seen so many questions like this across different websites, but they're either too old, didn't get an answer or if it did, never really answered properly.
I have created two scripts which nearly achieved this behavior and people say to just start from scratch and make everything yourself as much of the normal physics isn't involved. My current script it just feels as if the kart is gliding, and whenever I turn the wheels with the arrow keys, the kart moves.
I tried using Ray-casting mixed in with a rigidbody to achieve this but there's various issues, like the car moving even when on flat ground since the velocity of the rigidbody is being changed somehow?
I'd like to scrap that script and start again with these goals in mind:
Can steer when velocity < 0 but it won't move the kart until throttle or acceleration (with the up arrow key) is pressed or something.
Kart always faces the ground.
Kart accelerates and decelerates at a speed that I can control from a variable to allow customization
Only turn in a fixed degree of rotation (Mathf.clap) I assume.
Can skid/drift (automatic or manual
If anyone could point me in the right direction or even help me with this small part of my project, I'd much appreciate it and even give a little back if I get there.
Thanks,
Nathan
Your answer
Follow this Question
Related Questions
Ray cast to object to transform, instead all objects with script transform. 0 Answers
How to ensure raycasts hit colliders inside of trigger colliders on objects that have a rigidbody? 0 Answers
How to move a kinematic rigidbody with touch? 0 Answers
How can I fix my jumping script? 0 Answers
how to prevent a kinematic rigidbody from going through static colliders 0 Answers