- Home /
How to Instantiate a Gameobject with force. Please Help
I need to know how to Instatiate a Gameobect when I click the right Mouse button.But i'm new to coding and I can make a object spawn at the right place and stuff, but when I spawn it it just falls it doesn't move forward, so heres what I need to know is how to Insantiate a Gameobject but with force so it shoots out instead of just falling right to the gound. Please Help.Thanks
Answer by Berenger · Mar 30, 2012 at 04:00 PM
http://unity3d.com/support/documentation/ScriptReference/Rigidbody.AddForce.html
Just wrote "Force" in the search field of the doc. I admit, I had to scroll down a bit. Yes, this is condescending, but looking at your history, this is not the first time you ask a question that can be solved by typing a word in the doc. Try a bit harder.
Also, this two clicks from the main Instantiate page in the scripting docs, take a look at http://unity3d.com/support/documentation/$$anonymous$$anual/Instantiating%20Prefabs.html
It has examples of how to spawn something and right away change some settings.