Keys:
A: increase mass and decrease gravity
Z: decrease mass and increase gravity
Equations:
Ft = ma (Ft = translational force, m = mass, a
= acceleration)
Fk = kx (Fk = spring force, k = spring
constant, x = displacement)
Fa = wr (Fa = angular force, w = angular
velocity, r = radius)
V = 1/2 * a * t^2 (V = velocity, t = time
passed since last update)
S = Vt (S = distance)
R = wt (R = rotation)
C = center of mass
A = anchor (where spring is attached to mass)
P = fixed point (other end of spring)
Fa = Fk * (CA.unit dot AP.unit)
w = (1/2 * angularForce * t^2) / (m * r)
R += w * t
Ft = Fk + mg (g = gravity)
a = Ft / m
V = 1/2 * a * t^2
C += Vt