colingoldberg — 2010-04-14T11:39:03-04:00 — #1
Any suggesstions on how to modify the existing code to achieve the desired effect would be greatly appreciated.
paul_wilkins — 2010-04-14T17:52:14-04:00 — #2
The amount that the bus position is decreased by, is determined by this line:
var dec = Math.sqrt(xPos);
You will instead need to know both xPos and your target position, for example, xTarg, so that you can get the sqrt of xPos - xTarg