Leonids icon indicating copy to clipboard operation
Leonids copied to clipboard

it is wrong that Calculating the distance.

Open xiayu98020214 opened this issue 7 years ago • 1 comments

public boolean update (long miliseconds) {
    ............
	mCurrentX = mInitialX+mSpeedX*realMiliseconds+mAccelerationX*realMiliseconds*realMiliseconds;

............. return true; }

x=v0t+1/2at^2 , it should be mAccelerationXrealMiliseconds*realMiliseconds/2

xiayu98020214 avatar May 18 '17 08:05 xiayu98020214

Good find! Thanks for reporting

I'm reluctant to change it because that will make all the animations that are currently using the acceleration parameter work wrong.

Probably for the next release with a note on changing behaviour.

plattysoft avatar May 24 '17 10:05 plattysoft