i’m working on a game where the player could control an all-terrain vehicle in an open space (a desert for example).
Actually i try to fix the vehicule behaviour. It’s a kind of buggy and i use wheel colliders.
My main problem is when my car jumps (due to the bumps) : the jump is to long. After some research i realise that it’s quite normal in terms of Physics (looking rally car jumping,ect …) but i would like to minimise the jump.
The only idea that i have now is to reduce the max speed of the car but driving at 50km/h in a desert it’s not really funny xD
An other idea could be to not use the Physics and build my own “car controller” from scratch, but this afraid me a bit ^^
Well i tried to change the gravity when jumping … the result is what i’m looking for But i don’t like to switch the gravity of all the scene just during the jumps of my car xD I expect to have weird behaviour with others objects affected by gravity ^^
So the idea is to probably disable the gravity on my car and apply it manually
You can stop or limit the rotation of a rigidbody object using a configurable joint. You just need to set the Angular X/Y/Z properties to Locked or Limited either from a script or the inspector as appropriate.