The movement should be This should be connected with the mouse, in order to pull and shoot balls like on a slingshot. Please help me
Develop games in your browser. Powerful, performant & highly capable.
Calc distance between mouse and object. Use distance as force and apply it opposite direction.
You need to use physics. You need to have friction to slow it down.