Hi guys!
I've been trying to figure out how to do a text that interacts with a object. With the text being push away from an object when it's near the object.
I tried using on several physics library and it seems most of them are overkill and hard to control. (For example, its hard to bind the text back to its original position as the collision library either makes it a static or a dynamic [reacting to gravity]. )
Currently, there is what is on my head. Correct me if i'm wrong.
I probably need to make use requestAnimationFrame to constantly detect the collision. As the collision object will probably be a constantly changing object.
I can't seems to wrap my head around on how to create a Tween function that pushes a characters (near colliding object) out and then back when its not near the colliding object.
Any help is appreciated