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 wenhua · Jan 19, 2012 at 02:40 AM · rigidbodyexplosionhelicopter

How to make helicopter fall and explosion

How am i going to make my helicopter fall as my helicopter is now depending on Rigidbody to fly. my helicopter contains many smaller parts like mainbody, roter, camera so on. and some parts is attached with OnTriggerEnter explosion script. The helicopter is attached with OnCollisonEnter explosion script. So now i have to make it fall and Collision on the terrain to explode. So any1 knows how to make my helicopter fall please help me thx. as i am using another HUB script to tell my helicopter to fall in if(helicoper no fuel) fall.

My Rigidbody

Mass : 1276

Drag : 0.1

Angular Drag : 1.5

Use Gravity : Check

Is Kinematic : Uncheck

Comment
Add comment · Show 18
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 wenhua · Jan 20, 2012 at 01:30 AM 0
Share

Some how i find a way to make it fall. is that when no fuel > make rotor and other speed = 0 or false. so it will fall.

avatar image wenhua · Jan 20, 2012 at 01:37 AM 0
Share

So How am i going to make it explode, for now i got a way but not stable as i write if(helicopter.transform.position.y < 10) it explode. its not stable as only explode when hit on terrain which is height less than 10, what if it hit on height greater than 10 or onto mountain, it will not explode,i was think to use raycast if hit on anythings it will explode. But i doesnt know how to write it anyone help me pls .

if(helicopter.transform.position.y < 38){

    audio.PlayOneShot(explodesound);

    var explosion1 : Transform;
  
    explosion1 = Instantiate(explosion,transform.position,transform.rotation);   
 }
avatar image syclamoth · Jan 20, 2012 at 01:53 AM 0
Share

I was given to believe that rigidbodies would fall under normal circumstances. What's stopping it from falling? Why not just use normal collision detection?

avatar image syclamoth · Jan 20, 2012 at 03:32 AM 1
Share

Come on, you can't just lean on people for this stuff! Use the search engine, better still look at the script reference. It's full of tutorials!

avatar image Lo0NuhtiK · Jan 20, 2012 at 04:26 AM 2
Share

A simple way you could go about getting around your deal exploding at start impact would be caching your chopper's starting position.y , have a boolean set to false that you will set to true after you've taken off, compare your current position.y to your starting position.y + some float for height ; if it becomes greater-than, set your bool to true.
Then in oncollisionenter have it check that boolean. if its false, do nothing ; if it's true, blow sh*t up.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Pilot · Jan 19, 2012 at 02:57 AM

This should give you a good idea. It is one of the few unity Helicopter tutorials. If the rotors hit any collider they will explode and send the helicopter crashing to the ground. Good luck :)

Comment
Add comment · Show 3 · 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 wenhua · Jan 19, 2012 at 03:59 AM 0
Share

this tutorial doesnt $$anonymous$$ch to to make it fall, anybody knows how to do it??

avatar image sam32x · Jan 20, 2012 at 02:16 AM 0
Share
 transform.Translate(Vector3.down * Time.deltaTime * 10)
avatar image wenhua · Jan 20, 2012 at 02:32 AM 0
Share

yea i already found a way on top, So do you know how to make it to call on collision and explode as if(helicopter.transform.position.y < 38){ then explode is not stable, i need to change it on collision then explode

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

9 People are following this question.

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

Related Questions

AddExplosionForce doing nothing? 1 Answer

How do I chack that my explosion hit another explosive and blows up the other explosive? 0 Answers

Decrease ExplosionForce and damage continously by distance 2 Answers

Exploide GameObjects Into BrokenParts : Unity 1 Answer

Explosive ANimation 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