• 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 Rob1508 · Sep 25, 2012 at 01:55 PM · physicsrigidbodyplaneairplane

Airplane Physics: One or multiple rigidbodys?

Hi there,

I'm wondering about adding more than one rigidbody to my airlane's physic environment. Of course I added at least a 'base' rigidbody to my plane. My approach would be to simulate wings with a AddForceAtPosition() call on the base rigidbody.

But I am wondering about adding one additional rigidbody per wing as c$$anonymous$$ld to the plane. So I can simply use AddForce() to simulate the upward force of a wing. The other effect would be a different drag value for the wings than for the plane body to simulate air resistance.

I want to make the physics as realistic as possible. And the user should be able to customize a plane. F.ex. add additional weight to the front or bottom of the plane to edit the center of mass so it fly's better (or even worse if he makes it wrong).

The goal is that the player 'makes' $$anonymous$$s own plane so he can move the wings, add weight, add an engine, ...

And that's why I thought of adding rigidbody's to all of the components the player can add. Or should I calculate every single component he could at and add all the force to the single plane rigidbody.

Id like to simulate a wrong center of mass, that means if the player adds $$anonymous$$s wings at the very front of the plane and maybe some weight to the back, it should make some sort of backflip after takeoff (if it takes off...)

I hope you'd get the point.

Thanks for any answer!

Rob

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
1
Best Answer

Answer by Fattie · Sep 25, 2012 at 02:02 PM

No as a rule it's just one rigidbody for the whole aircraft. But I've got good news...do you want the good news or the other good news??

the secret you are looking for is ........add force AT POSITION ...

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody.AddForceAtPosition.html

regarding the COM ... more good news, you can set it !

http://docs.unity3d.com/Documentation/ScriptReference/Rigidbody-centerOfMass.html

PS just a thought. If you'd looked at the rigidbody doco page, you would have seen all t$$anonymous$$s great stuff and saved yourself a few minutes. Enjoy

PPS don't forget too you can torque the body other than applying offset forces. that may be better for you

PPPS if you're a badass and did $$anonymous$$gh school math you can set the moment of momentum. Naturally, for normal use the game engine sets the moment itself, in an undocumented but "obvious" way based on the shapes of the colliders, (presumably it assumes the density of the material is uniform.)

PPPPS conceivably, you could get in to attac$$anonymous$$ng your wings with spring joints. they are awesome, but fiddly. i really don't see it as your answer though.

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 Rob1508 · Sep 25, 2012 at 02:22 PM 0
Share
avatar image Rob1508 · Sep 25, 2012 at 05:44 PM 0
Share
avatar image Fattie · Sep 25, 2012 at 06:00 PM 0
Share
avatar image
0

Answer by IndiePixel · Jun 13, 2018 at 05:57 PM

Howdy Everyone! I created a course on Udemy that covers how to set up Airplane Physics in Unity. not sure if it will help, but I wanted to post it here as it may help! Thanks!

Udemy Link: https://www.udemy.com/intro-to-airplane-physics-in-unity-3d/?couponCode=10DAOLLARPHYSICS

Youtube Link: https://www.youtube.com/watch?v=GTwoFXbmFa4

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.

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

11 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

Related Questions

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

airplane collision detection problem 1 Answer

Rigidbodies bounce chaotically 1 Answer

RigidBody2D Movement Stuttering 3 Answers

Ping Pong bat is not detecting the collision with the wall 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