I came up with a simple way to make objects snap to other objects as if they were magnetified. I call it qarp snap, for less than obvious reasons.
uc1382ed3998932e7e959e4928a0.dl.dropboxusercontent.com/cd/0/get/Ch9uNJi9imVnnlh2GtQ_wZgipck2LoEZA4C0wBgvYZN2FgswVkyQykUlmm-uToxgykerSkyFZBCEc-a1q6qZ7YaguN_QCF2PKbMrd5s7F5FnCvTweE6PcoCD9y4KCO2v3nI/file
Thats so cool!
Whats diffrent between qarp and lerp?!
Develop games in your browser. Powerful, performant & highly capable.
Lerp is interpolation for two points, qarp is for three, and cubic is four.
The extra lerp in the qarp is to adjust the easing.