A turning controller for a vehicle, the vehicle including wheels including a front wheel and a rear wheel, a front wheel steering device configured to adjust a steered angle of the front wheel, and a rear wheel steering device configured to adjust a steered angle of the rear wheel, the turning controller comprising processing circuitry configured to execute:
- a time obtaining process that obtains collision prediction time, the collision prediction time being a predicted value of an amount of time before the vehicle collides with an obstacle in a case in which the vehicle is approaching the obstacle;
- a lateral movement amount determining process that determines whether a target lateral movement amount is greater than or equal to a lateral movement amount determination value, the target lateral movement amount being a movement amount in a lateral direction of the vehicle required to avoid a collision between the vehicle and the obstacle;
- and
- an automatic turning process in a case in which the collision prediction time is shorter than or equal to a determination prediction time, the automatic turning process outputting a command for steering the front wheel to the front wheel steering device and outputting a command for steering the rear wheel to the rear wheel steering device, in order to avoid a collision between the vehicle and the obstacle,
- wherein the processing circuitry is configured to execute a counter-phase process in the automatic turning process in a case in which the target lateral movement amount is determined to be greater than or equal to the lateral movement amount determination value, the counter-phase process outputting a command for steering the rear wheel in a direction opposite to a steering direction of the front wheel to the rear wheel steering device.