-3

I need to make an animation to change object position with the acceleration to the center and slowing to the end.

I have 2 values: CurrentPos and PosWhereNeed.

I have some formula: CurrentPos + (PosWhereNeed - CurrentPos) / Modifer (Modifer controls the speed).

But this formula has a sharp beginning without acceleration, only slowing on the end.

And it has some drops on the end (not slow changing position).

fmw42
  • 46,825
  • 10
  • 62
  • 80
andrey 27
  • 51
  • 7

1 Answers1

0

If what you have already works, then calculate what it would be to get to the halfway point, and copy and reverse it to get to the rest of the way there.

Alternatively, pick any point along the way instead of halfway (like a quarter way) and use that for the transition, and have a constant speed between those two points.

corsiKa
  • 81,495
  • 25
  • 153
  • 204