How to make an object move behind the Wheel Collider?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour
{
 public WheelCollider Right;
 public WheelCollider Left;
 public WheelCollider BackRight;
 public WheelCollider BackLeft;
 public float motor=100f;

 private void FixedUpdate()
{
 Right.motorTorque = Input.GetAxis("Vertical") * motor;
 Left.motorTorque = Input.GetAxis("Vertical") * motor;
 BackRight.motorTorque = Input.GetAxis("Vertical") * motor;
 BackLeft.motorTorque = Input.GetAxis("Vertical") * motor;
}
}

There's a script that turns the Wheel Collider at the click of a button. How to make moving object to move with these colliders? Please help!
April 19th 20 at 12:13
1 answer
April 19th 20 at 12:15
Solution
The object of the parent of wheels (car), needs to be a Rigidbody, then wheel use it, move it physics.

Here is the official lesson at the Wheel Collider'am. It's simple and it works.
Thank you very much! - Mercedes.Cormier commented on April 19th 20 at 12:18

Find more questions by tags Unity Game Engine