Before updating to Windows 10 you may need to return your Pro license. More information here

Make grenade roll out when it leaves hand

I have a working grenade script, but when you throw it, it just instantiates itself out and applies force up, and forward. The problem is, is that it just flies out, and stays in one place while its flying through the air. Is there any way I can make it so it looks more real, and kind of flips through the air or something? I have tried animating it, and every time I throw it, it appears where I recorded the animation.

more ▼

asked May 24, 2011 at 09:19 PM

avatar image

44 29 23 27

You've asked 3 questions that could be easily solved just by searching Unity Answers, or just googling it, or even random experimenting, or just thinking about it. Just try looking around next time. Please try not to re-post questions. :(

May 24, 2011 at 09:36 PM Meater6

The reason I'm asking is because I don't even know where to start searching. In fact, the last line I said was "I have tried animating it", which means I am experimenting.

May 25, 2011 at 12:57 AM Syllith

Plus, I have been searching.

May 25, 2011 at 12:58 AM Syllith

Well, that's good. I am sorry if I had offended. By the way, how did you originally have the grenade be thrown?

May 25, 2011 at 02:33 AM Meater6

Dont worry about it. I should have been more clear. Anyway, I just figured it out. When I tried animating it, I animated the position, and the rotation. I should have only did the rotation. Now it looks fine.

May 25, 2011 at 09:01 PM Syllith
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Add a rigidbody for gravity and force. When you throw it, add force upward and forward relative to the person. To make it spin in the air (if that's what you want) add random torque to it. Or just make it rotate constantly, but that won't look that realistic on the ground.

I hope this helps.

more ▼

answered May 24, 2011 at 09:32 PM

avatar image

1.5k 38 30 51

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: May 24, 2011 at 09:19 PM

Seen: 1467 times

Last Updated: May 25, 2011 at 09:01 PM