void Update() { var x = _time.Progress().Clamp01(); var ini = Vector3.one.normalized; // test code STARTS here ----------------------------------------------- ini = _rotation.Slerp(x) * ini; _capsule.LookAt(ini * 100); // test code ENDS here ------------------------------------------------- }
void FixedUpdate() { var x = _time.Progress() % 1; dbg.log(x); var ini = _from; // test code STARTS here ----------------------------------------------- var curr = _rotation.Slerp(x) * ini; // test code ENDS here ------------------------------------------------- Debug.DrawLine(Vector3.zero, curr, Color.green, seconds / 2f); Debug.DrawLine(Vector3.zero, _axis, Color.black, 0); Debug.DrawLine(Vector3.zero, _rotation.Axis, Color.white, 0); Debug.DrawLine(Vector3.zero, _from, Color.red, 0); Debug.DrawLine(Vector3.zero, _to, Color.blue, 0); }