- Home /
The question is answered, right answer was accepted
Grab object with mouse input
Hi guys
I would like to drag and drop to launch an object (rigidbody) with the mouse grab. Do you have the source code?
Thank you
Answer by Klarzahs · Dec 07, 2018 at 10:59 AM
Hi,
asking for the source code is not really the point here. Also, you could have searched for your question first. Grabbing (selecting) objects with the mouse has been answered e.g. here. Note that you'll need a box collider and a rigidbody on the game object. Drag and Drop is simply applying the current mouse movement to the object. You can use Input.GetAxis() for it.
Hope this gets you started.
Follow this Question
Related Questions
Move Camera once Mouse Drag is complete 2 Answers
Right click drag and drop script 1 Answer
how to detect horizantal and vertical drag on screen by mouse.? 1 Answer
Help In Making a SphereCast for 3D Tire! Working RayCast Script included! 0 Answers
Trying to trigger multiple objects by holding down the mouse with OnMouseDown 1 Answer