Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
0
Question by Garaa · Oct 04, 2013 at 06:17 PM · bulletcolliderocks

May i ask how to do the prefab bullet hits or collides with rocks then the rocks fall? i don't know how to do it. anyone please help me :(

alt text

ask.jpg (77.5 kB)
Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Seth-McCumber · Oct 04, 2013 at 06:28 PM

You Could Say When The Bullet Hits The Rock, It Applys A Rigid Body To The Rock. Would Give More Detail, But Your Question Is Unclear.

Comment
Add comment · Show 1 · 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
avatar image Garaa · Oct 05, 2013 at 06:41 AM 0
Share

$$anonymous$$y gun has a bullet then if i shoot that rock, the rock should fall into the water.. i dont know how to do it. :(

avatar image
0

Answer by YoungDeveloper · Oct 04, 2013 at 06:21 PM

You could animate the rock, simple drop animation, or if that area is hilly you could just activate its physics and it would roll down OR you could add force till it drops down. If you are using raycast, get the hit object and getcomponent of the script where is the function, which launches the animation. If you are using rigidbody colliders, just get the collider hit, and next is the same process as with raycast.

To get script and call some function on the run, see this example i gave answer for: http://answers.unity3d.com/questions/547347/send-message-on-trigger-enter.html

Comment
Add comment · Show 12 · 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
avatar image Garaa · Oct 05, 2013 at 06:44 AM 0
Share

how can i do the "activate its physics and it would roll down OR you could add force till it drops down."??? please help me :( thanks

avatar image YoungDeveloper · Oct 05, 2013 at 08:47 AM 0
Share

Please stop the triple question mark, and "PLEASE HELP", it's annoying. And Sentence starts with a capital letter, not even talking about commas.

Actually i gave you enought information to figure out how it must be done, and what you should search for. But as i see it, your not even trying to understand, just "show me how its done", and by show me, i mean "do the work for me". Program$$anonymous$$g is not typing letters and numbers, it's about training your brain as a muscle for logical thinking and solving problems.

To achieve what you want, you have think about these things:

  1. What will be your bullet, raycast or physical rigidbody

  2. When you will figure out which one will you will choose, make it so you could shoot the bullet on button press.

  3. Next step, when you have your bullet ready, make it when the bullet hits something with a tag "rock" Debug a message in the console.

When you will create all my mentioned steps, come back and i will gladly tell you what to do next. Or when you will encounter problems with program$$anonymous$$g, which most likely happen, poat a new quesrion about your specific problem or here.

avatar image Garaa · Oct 05, 2013 at 10:40 AM 0
Share

$$anonymous$$y bullet is a prefab, i already did the shooting part, i can shoot with my gun. I also did the code wherein my bullet hits a tag "rock" but then the problem the rock is not falling or rolling over.

avatar image Garaa · Oct 05, 2013 at 11:34 AM 0
Share

$$anonymous$$y bullet is rigidbody.

avatar image Garaa · Oct 05, 2013 at 12:27 PM 0
Share

I added a force to the rock but it still doesnt drop down or rolls to the river.

Show more comments

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.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Destroy Projectile on collision 3 Answers

Collision with terrain 0 Answers

Bullet and Enemy can't collide and execute functions 1 Answer

How to destroy bullet on collision! 2 Answers

when the bullet hits the bot it still makes the bullet hole 1 Answer


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