private void GetRequiredComponents() { if (vehicleBody == null) { Debug.LogError("Vehicle body has not been assigned on the VehicleBehaviour", gameObject); } if (frontLeftWheel != null) { wheelFrontLeftParent = frontLeftWheel.parent; GetWheelRadius(); } if (frontRightWheel != null) { wheelFrontRightParent = frontRightWheel.parent; } container = VehicleModel.GetChild(0); containerBase = container.localPosition; modelHeightOffGround = new Vector3(0, transform.localPosition.y, 0); }