U
U
Uncle Bogdan2021-09-06 21:50:31
Unity
Uncle Bogdan, 2021-09-06 21:50:31

Why is it necessary to divide the time in SmoothDamp by 3?

Wanted to use Smoothdamp to move smoothly from one point to another. Decided to do this:

_movingPart.eulerAngles = Vector3.SmoothDamp(_root.eulerAngles, _newRotation, ref _currentRotateVelosity, _openingTime);


I thought that he would reach the end from the start in the time specified, but he moves about 3 times slower and the timer for this time of a second runs faster than the required end of the movement.

Divided by 3, it seems to work fine, but why is it moving so slowly?

_movingPart.eulerAngles = Vector3.SmoothDamp(_root.eulerAngles, _newRotation, ref _currentRotateVelosity, _openingTime / 3);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2021-09-07
@freeExec

Because the documentation directly says that this is not the time to a complete stop.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question