How to Connect steering wheel to front wheels?

Hi

I have c# code that allows me to rotate the steering wheel and wheels together and I can move the steering wheel via a slider in the inspector

using System.Collections;
using UnityEngine;
public class SteeringWheelRotation : MonoBehaviour {
    [Range(-45f,45f)]
    public float steeringWheelRotationAmount = 0f;
    public float wheelRotationDampening = 0.5f;
    public Transform frontLeftWheel, frontRightWheel;
    // Use this for initialization
    void Start () {
    }
    // Update is called once per frame
    void Update () {
        transform.eulerAngles = new Vector3 (transform.eulerAngles.x, transform.eulerAngles.y, -steeringWheelRotationAmount);
        frontLeftWheel.eulerAngles = new Vector3 (frontLeftWheel.eulerAngles.x, steeringWheelRotationAmount*wheelRotationDampening, frontLeftWheel.eulerAngles.z);
        frontRightWheel.eulerAngles = new Vector3 (frontRightWheel.eulerAngles.x, steeringWheelRotationAmount*wheelRotationDampening, frontRightWheel.eulerAngles.z);
    }
}

I would like to be able to use the left and right arrow buttons when start the game to move the car

could anyone help on that

Are you using WheelColliders? If so you need to set the steerAngle on them to change the direction the car moves. You shouldn’t rotate the transform each collider is on though, so to rotate the visual mesh create another object and move that separately. To get the transform of a wheel (which is derived from the steerAngle as well as the speed it’s spinning) use GetWorldPose.