- Home /
This post has been wikified, any user with enough reputation can edit it.
Throwing a gameObject based on distance (2D)
Hi there, i'm having trouble to make a throwing script,i want to throw the green square above the black one
I tried to get the distance between them, set dist.x *= 0.8f and then addForce(dist),but depending on the distance, the green square flies like crazy :'(
I have searched too for throwing at a certain angle and speed, and the use of addForce vs translate, but could not found an answer for this problem; any thoughts?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613175200im_/https://answers.unity.com/themes/thub/images/avi.jpg)