• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by Syllith · May 24, 2011 at 09:19 PM · animationexplosionthrowgrenade

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 w$$anonymous$$le 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 somet$$anonymous$$ng? I have tried animating it, and every time I throw it, it appears where I recorded the animation.

Comment

People who like this

0 Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Meater6 · May 24, 2011 at 09:36 PM 0
Share

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. :(

avatar image Syllith · May 25, 2011 at 12:57 AM 0
Share

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.

avatar image Syllith · May 25, 2011 at 12:58 AM 0
Share

Plus, I have been searching.

avatar image Meater6 · May 25, 2011 at 02:33 AM 0
Share

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

avatar image Syllith · May 25, 2011 at 09:01 PM 0
Share

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.

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Meater6 · May 24, 2011 at 09:32 PM

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 t$$anonymous$$s helps.

Comment
oliver-jones
Jace

People who like this

2 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

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

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Related Questions

3rd Person Throwing Grenade Question 0 Answers

Explosion Damage not being applied. 1 Answer

Can the animation editor create local rotational data? 3 Answers

Explosion animation not available for unity 2019.2 2 Answers

Adding animation clips via script 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges