Answer the question
In order to leave comments, you need to log in
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;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question