x
y
dx
dy
mX
mY
Status
clientW
clientH
sL
sT
sW
sH
rebound:
v_delta:
t_decay:
var_factor:
var_delta:
gravity:
mass:
timeout:
instant speed change
dx_now
dy_now

startX
startY
dx0:
dy0:
Vo:
theta:
touchX:
touchY:
Fire Touch
Tips:
  1. rebound=-10 means energy gain on each bounce
  2. mouse over dx_now or dy_now takes effect immediately
  3. Vo is original speed, theta is angle
  4. choppy motion possible if running multiple windows, or in Netscape
Right Click - starting point
Middle Click - pause
Double Click - fire (not in Netscape)
Smiley Click - fire