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 Henrique Dantas · Feb 05, 2011 at 02:37 PM · errorphysicsairplane

Falling plane physics problems

Hey guys, i'm making an island game and in the begining, a guy falls from a plane. The problems are simple (i think), but i'm a newbie. Well, the problem is shown in the below link of a video: http://www.infosecom.net/planefalling.mp4

That is not completed yet, i want to make the helix, and other parts of the plane to detach from the plane hierarchy and add a rigidbody to them when it collides. I'm using these scripts:

The script below deactivates the waypoints script so the plane dont follow the waypoint and starts to fall cuz it has a rigidbody attached to.

function OnCollisionEnter () {

var wayPoint = gameObject.GetComponent("WayPoints");

wayPoint.enabled = false;

audio.Play();

}

The following script detaches the parts of the plane like tail, helix, helm and other parts when these parts collides with the mountain shown in the video above.

function OnCollisionEnter () {

gameObject.AddComponent("Rigidbody"); transform.parent = null;

}

I've tried to use Transform.DetachChildren, but i don't know how to use it.

The hierarchy is that: http://www.infosecom.net/hierarchyscreenshot.png

It's that, any tips or tricks you have to the game, like, you can put this in the plane, that in the mountain and etc. Thanks!

Comment
Add comment · Show 1
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 tool55 · Feb 05, 2011 at 07:22 PM 0
Share

Seems like the video link is dead. What's the problem you're encountering?

A common way to do what you want is to instantiate a whole new game object, but already broken into pieces. In other words, destroy your aircraft and instantiate an exact duplicate with the pieces not parented. It'll be easier to add things like smoke trails, explosions etc.

1 Reply

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

Answer by Henrique Dantas · Feb 14, 2011 at 11:22 PM

I solved this myself, thanks :D

Comment
Add comment · 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.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

"Invalid AABB" error whenever rigidbody moves 7 Answers

2D 360 degress platformer example needed 0 Answers

What is the velocity on a given axis of a rigidbody? 2 Answers

Instantiating Rigidbodies on PhotonNetwork? Am I doing it wrong? 1 Answer

Problem with physics: GetPointVelocity & AddForceAtPosition (airplane control 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