Hello, I'm French and I'm making a kart game system like mario kart or Crash Team Racing. I tried to make a car with Weel Colliders but it wasn't work so I decided to use a box collider and move it with Rigidbody.AddForce and turn on y axis with Rigidbody.AddTorque : Code (CSharp): Awake() { rb = GetComponent<Rigidbody>(); } FixedUpdate() { rb.AddForce(transform.forward * power * Input.GetAxis("Vertical"); rb.AddTorque(Vector3.up * turnSpeed * Input.GetAxis("Horizontal"); } Unfortunately the box slip too much and decelerate very quickly when vertical axis is released How I can fix it ? to get a box with like car movement ?
What you need is more friction along the X axis and less friction along the Z axis. This is, really, the exact purpose of the wheel collider, and I'm not aware of a way to fake it in a box collider. I'd suggest you give those another shot.
Yes and I add centerOfMass & AntiRollBar script, I got a stable car but very slippery (not easy to control) I don't understood why
I solved my problem by reading a tutorial from Game Development for iOS with Unity 3D by Jeff W.Murray book in Making a Kart-Racing Game chapter, you can find the resources for free on CRC Press website here : https://www.crcpress.com/Game-Development-for-iOS-with-Unity3D/Murray/9781439892190
But I want to know how to make a arcade car like in SuperTuxKart, Mario kart, CTR... by using Wheels Colliders. I would like to get a driving system work with Toon Car (stable, fast, not very slippery, simple collisions and curved road). What I need to done it ? any suggestions ? Please