B.x = (A.x + (A.width / 2)) - (B.width / 2)

B.x = (A.x + A.width) - (B.width)

A.y += sine(value) * waveScale

A.x += cos(value) * rubberbandScale

A.x+= Math.random() * xscaleFactor A.y+= Math.random() * yscaleFactor

%d bloggers like this: