private void FixedUpdate() { if (!isLaneDataSet) { return; } SetTargetTurn(); speed_pid.SetKValues(speed_PID_kp, speed_PID_kd, speed_PID_ki); steer_pid.SetKValues(steer_PID_kp, steer_PID_kd, steer_PID_ki); NPCTurn(); NPCMove(); WheelMovementComplex(); }
private void FixedUpdate() { if (Control == ControlType.Automatic || Control == ControlType.FollowLane) { if (isLaneDataSet) { SetTargetTurn(); speed_pid.SetKValues(speed_PID_kp, speed_PID_kd, speed_PID_ki); steer_pid.SetKValues(steer_PID_kp, steer_PID_kd, steer_PID_ki); NPCTurn(); NPCMove(); } } WheelMovementComplex(); }