c# - Declaration of control -
i need in math logic issue. let have object can manipulate (move) user. after user moved object object continue moving , decelerate stop.
example, when user move object point b total distance of 100pixel in x axis, after user release finger, want let object continue moving , decelerate stop point b point c.
so how can calculate new distance of point c if set time decelerate , stop in 2sec?
thank you!
d = ½at² + vit + d0
d0 point @ user "let go". calculate vi motion before letting go. set negative; you'll have fiddle feel right. increment t 0 through 2. d object end up. remember , vi vectors pointing in opposite directions, , d0 , d points.
Comments
Post a Comment