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.
dropbox.com/s/1ag6ovf1dkx94rk/qarp%20snap.c3p
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.