Useful Math Applications by Kino | Jun 7, 2019 | Game Dev | 0 comments 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() * yscaleFactorLike this:Like Loading... Submit a Comment Cancel replyYour email address will not be published. Required fields are marked *Comment Name * Email * Website Save my name, email, and website in this browser for the next time I comment. Notify me of follow-up comments by email. Notify me of new posts by email.