i have a tank that is rotating toward the middlepoint of the camera i use a slerp. but it is slowing down if it almost there.
private void RotateHull()
{
Quaternion target = Quaternion.Euler(0, _mainCamera.transform.eulerAngles.y, 0);
hull.transform.rotation = Quaternion.Slerp(hull.transform.rotation, target, Time.deltaTime * turnTime);
//SetRotate(hull, _mainCamera);
}
this is the code. hull is the koepel en gunner.