- Home /
Question by
sam · Oct 14, 2010 at 04:05 AM ·
instantiate
Throw an explosive
I'm trying to throw an object generated from a character using C#. Im not a very experienced programmer, How could I do that?
Comment
Answer by AliAzin · Oct 14, 2010 at 06:06 AM
you should create a rigid-body grenade prefab and each time instantiate one and use rigidbody.AddForce() to give it initial speed.
Answer by PeterDC · Oct 14, 2010 at 06:01 AM
Take a look at Object.Instantiate in Unity's documentation.
Your answer
Follow this Question
Related Questions
Checking if object intersects? 1 Answer
How to convert byte[] to GameObject? 0 Answers
Instantiating an object based on time 2 Answers