Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 Ianp26 · Aug 05, 2018 at 10:11 PM · physicsspringstretchinghinge jointconfigurable joint

Make Rigidbody not move away from Hinge Joint under force/ weight.

Hi all,

I have a bridge which was created using cubes (as rigidbodies) and cylinders x2 (as hinge joints to support the cube on both sides. Each cylinder has 2 hinge joints, each for the 2 cubes it connects too.

anyways. everything works well enough, except, when my 50 kg character stands still or jumps onto a cube, the force is clearly too great, and the cubes stretch away from the hinge joint and eventually spring back into play launching my character a million km into the atmosphere where physics doesnt bother me anymore.

alt text looking at configurable joints, but they also stretch under force, even when motion and angular motion locked. Maybe the way im doing the joints are incorrect, and the cubes, themselves, need configurable joints to the hinge joints objects, so rb joints connected directly to rb joints?

Just need the cubes and/ or the joints to sit still and truly act like they are connected. any help is greatly appreciated. also, i have tried limits, and springs, but they only help to a certain extent.

Regards

screenshot-111.png (185.3 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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by JVene · Aug 06, 2018 at 04:15 AM

You've discovered what is just the reality about how joints in general function, or one might say don't. There's only so much that can be done. PhysX, the engine under the hood, offers articulated joints which do much better, but they aren't exposed in Unity at this time.


When a Hinge is used as the axle for a wheel, the vehicle one might use them for will not withstand much mass (weight) without dislodging the wheel, as if the axle buckles under weight. When used for a door, if the door is hit with significant force, it's as if the axles are bent or dislodged. These results happen despite the breakage value set to infinity.


To use these hinges the only option is to reduce the mass of the objects affecting the hinge. In the case of a "door" like arrangement I have managed to build a kind of monitor that checks for misalignment and resets the artwork (the GameObject the hinge operates) when observed, but the result is a tad jittery.


It is typical that masses aren't given as real mass, but mass values which at least function within the limits of the system, producing the general appearance expected. Games aren't real physical simulations anyway. Physics engines like PhysX work with floats, and the intermediate calculations required for real time simulation can overflow or underflow floats all too easily, so the limits involved translate into non-realistic measurements which happen to produce reasonably realistic results, give or take.


Based on a guess about your scenario, my guess is that 5Kg would probably work, while 15Kg might be the limit at which you see the objectionable behavior. I've laughed myself at some of the strange results that can happen while tuning. I had a robot arm inflict so much power on the floor that it launched the bot into the air, and for a few moments while I wondered what happened I could see the shadow spinning until the bot fell back to the ground, twitching and bouncing, tossing objects everywhere like a 60's cartoon. It was hilarious at the moment.

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 Ianp26 · Aug 06, 2018 at 09:28 PM 0
Share

Ah, thanks for the reply. Yeah, it makes me a little sad, but i guess my 50kg character doesn't have to weigh so much haha.

Appreciate the response <3.

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

155 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 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 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 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 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 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Configurable Joint chain with no spring/stretch? 2 Answers

Trouble with spring platform 0 Answers

Weird behaviour with hinge joint 0 Answers

Force normal to spring axis 0 Answers

How Can I Implement Spring Force Physics to Simulate a Spring? (C#) 0 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