Leonids
Leonids copied to clipboard
it is wrong that Calculating the distance.
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
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.