Страница 1 из 1

Помогите правильно прочесть

СообщениеДобавлено: 14 июн 2019, 21:53
tard
Привет!
Есть выражение Vector3.RotateTowards (transform.forward, m_Movement, turnSpeed * Time.deltaTime, 0f);
Я правильно понимаю что мы от оси Z в сторону направления координаты m_Movement поворачиваем со скоростью turnSpeed * Time.deltaTime? Или я путаю.
Если правильно, что там делает 0? Что за параметр maxMagnitudeDelta?

Re: Помогите правильно прочесть

СообщениеДобавлено: 14 июн 2019, 22:17
seaman
If the magnitudes of current and target are different, then the magnitude of the result will be linearly interpolated during the rotation.

Re: Помогите правильно прочесть

СообщениеДобавлено: 16 июн 2019, 20:53
tard
seaman писал(а):
If the magnitudes of current and target are different, then the magnitude of the result will be linearly interpolated during the rotation.

Отличный ответ, сразу стало все понятно, спасибо дружище :ymapplause: