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
1
Question by Fredrum · Feb 10, 2013 at 11:42 PM · dragtorqueangularvelocity

Different angular drag for different rotations?

Hi Everyone,

my ship control script is adding torque to its rigidbody to achieve different things. Now I really would like to have different angular drag for different 'parts' of the ships torque. Say for the left-right direction rotations and for the ground alignment orientation.

How can I do that?

Cheers Fred

Comment
Add comment · Show 4
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 Fattie · Feb 11, 2013 at 10:15 AM 0
Share

do you mean you want it to ..

http://upload.wikimedia.org/wikipedia/commons/7/7e/Rollpitchyawplain.png

kind of stay tight on the roll (say), but wibble a bit more on the yaw ?

is that about right?

tricky - i would write a script, a behaviour, that flattens, $$anonymous$$imizes motion, on one axis. (say roll in the example). just attach that to the object and let it do it's stuff, regardless of anything else happening.

Hoep it helps in some way.

Also conceivably - you could put one rigidbody inside another, both constrained, and set the honey as you see fit on each one. BUT then you get all the usual problems of having chains of rigidbody.

Finally ... if you are hip to moments of inertia, and it has a collider attached,

file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/Rigidbody-inertiaTensorRotation.html

consider these very long discussions ...

http://answers.unity3d.com/questions/280008/nested-rotations-for-snowboard-flip-turn-roll.html

http://answers.unity3d.com/questions/279358/equivalent-to-this-using-torque.html

avatar image Fredrum · Feb 11, 2013 at 11:13 AM 0
Share

Hi Again and thanks for your thoughts,

unfortunately I can't just separate axises and treat them differently. There is full xyz overlap in the rotations that I want to treat differently. I have just started thinking that maybe I have to do the simpler rotations by hand with transforms and roll my own 'angular drag'. I'll look through those links tonight. Cheers, Fred

avatar image Fredrum · Feb 12, 2013 at 08:13 PM 0
Share

I ended up scripting in my own turn drag. The thing I needed it for was the left-right steering that I wanted some feeling of weight to without having to use the same angular drag as my more complex alignment setup.

So I did a basic buildup of turn velocity and then subtracted a simple turn drag based on my general air resistance part of the script.

Surprisingly it seems to have worked.

avatar image Fredrum · Feb 13, 2013 at 10:51 AM 0
Share

Ouch, the reason it was surprising was because it actually did not work. Back to tweaking. Need to be even more manual I think with transforms as end product rather than angular vel. We'll see.

0 Replies

· Add your reply
  • Sort: 

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

10 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

Related Questions

Rotate object with rigidbody and high angular drag around particular local axis 0 Answers

How to accurately transfer torque? 0 Answers

Angular velocity not affecting Rigidbody2D 1 Answer

why is my angular velocity slowing down? 1 Answer

Do I understand Time.deltaTime? 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