Search Unity

Driving Game Tutorial

Discussion in 'Editor & General Support' started by MrStu, Mar 23, 2009.

  1. MrStu

    MrStu

    Joined:
    Mar 20, 2009
    Posts:
    5
    Hi

    I've had a search and the threads I find have either a very technical question, or broken links to tutorials etc.

    I've got a terrain, a vehicle model with 4 seperate wheels, wheel colliders. It sits nice and happy on the terrain.

    How do I get it to move and how do I control it?

    Thanks
     
  2. Superflat

    Superflat

    Joined:
    Mar 19, 2009
    Posts:
    354
    I'm also quite interested to find out.

    From what i read in the documentation you need to use motorTorque and brakeTorque.
    http://unity3d.com/support/documentation/ScriptReference/WheelCollider.html

    What i'm wondering is how do you get the front wheels to do the same (use the same controller?)

    And how do you attach the body appropriately to the wheels (or the other way around)