- Home /
Question by
Gaming-Dudester · Apr 19, 2016 at 01:22 AM ·
c#first-person-controllerdrag-and-dropfirstpersoncontrollerthrowing
Throwable drag and drop object. First person view.
I know how to make a gun that fires a gameobject. but what im going for is kinda like "Whos your daddy" throwing style. I mean like when your in first person and you click down on a throwable object and you can fling it by releasing the left mouse button at the right moment. How would one do this?
Comment
Answer by DivinityStripes · Apr 19, 2016 at 05:02 AM
I haven't played Who's Your Daddy, but I'd imagine all you would need to do is use a script that picks up an object with Input.GetMouseButtonDown.
Then have an Input.GetMouseButtonUp which would release the object and use Rigidbody.AddForce on it.
Not like that. I mean when you swing the mouse around it builds momentum.
Your answer
![](https://koobas.hobune.stream/wayback/20220612075124im_/https://answers.unity.com/themes/thub/images/avi.jpg)