how to calculate a negative acceleration?

后端 未结 15 2089
既然无缘
既然无缘 2021-02-08 12:11

I\'m implementing the scrolling behaviour of a touch screen UI but I\'m too tired in the moment to wrap my mind around some supposedly trivial piece of math:

y (         


        
15条回答
  •  温柔的废话
    2021-02-08 12:34

    You could keep track of the velocity and cut that down by a fraction of the velocity each time. That would simulate friction quite well I believe.

提交回复
热议问题