New answers tagged

0

Use the hypotenuse lenght of the triangle described by the differences on th x and y axis. This traduces to: dx = event.x - event.xStart dy = event.y - event.yStart force = math.sqrt(dx ^ 2 + dy ^ 2) And that's it. Good luck with your game!



Top 50 recent answers are included