Active tilting control today is one of the technologies which is widely used in modern rail vehicles. The tilting movement of the wagon to the inside of the turn reduces the lateral acceleration of the passengers onto the curves and also increases the speed of the rail vehicles. Usually evolved control methods are used for this purpose. In this research, it is tried to reduce the lateral acceleration on passengers (caused by high-speed motion in turn) by using a suitable control method. A linear dynamic model has been developed for a modern rail vehicle with its active anti-roll bar and an attempt has been made to design the control method in such a way to be robust against disturbances such as noise and wind and to operate as efficiently as possible. The active anti-roll bar acts as an actuator with a DC brushless motor that comes with a harmonic gearbox, which controls the tilting movement of the wagon. At the end, it is shown that the use of this method significantly reduces the lateral acceleration of the train. The control methods are used in this research are conventional PID controller and LQG optimal control system. After simulation and perception the results, it was found that LQG control versus PID has more suitable responses and the effects of noise are negligible in it. These simulations were done using the simulink environment of the MATLAB software. Keywords: Tilting wagon, Lateral acceleration, Rolling angle of wagon, Active anti-roll bar, PID control, LQG servo control, Brushless DC motor