dotween icon indicating copy to clipboard operation
dotween copied to clipboard

SetSpeedBased(true) doesn't work on DoJump()

Open Benji19-97 opened this issue 3 years ago • 1 comments

transform.DOJump(target, height, 1, speed).SetSpeedBased(true).SetEase(Ease.Linear); Does not behave as expected.

Benji19-97 avatar Jun 17 '22 20:06 Benji19-97

For anyone struggling with this, remember DOJump returned a sequence which is not affected by SetSpeedBased . image

image

So you have to calculate the duration based on the speed yourself.

0kk470 avatar Sep 21 '23 13:09 0kk470