Hello,
I was looking for moveOverTime function with deceleration time (like moveZ() ). So is there any algorithm for that? :)
Regards, RobsoN.
Printable View
Hello,
I was looking for moveOverTime function with deceleration time (like moveZ() ). So is there any algorithm for that? :)
Regards, RobsoN.
Well, the deceleration time could be "simulated" by calculating like 4 points in the deceleration-line (oldx,oldy to newx,newy), and each deceleration-point is used to move the hud slower to it.
I'm not 100% sure I know what you're saying, but here goes: moveOverTime() has only 1 argument. You cannot enter more than 1 argument, because it will throw an error. It is not like moveZ() as that is capable of 4 arguments. The closest you can come to entering more than 1 argument is by using randomIntRange() and entering 2 integers for randomizing between them.
Yea, the 4 deceleration-points would need 4 extra-moveOverTime()'s
Would look like this:
Attachment 294