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
4
Question by pumpkinszwan · Jun 10, 2014 at 11:28 PM · 2dphysicsjointhinge

Make a hinge joint stay firmly in place

I have a 'trapdoor' prefab with a single hinge joint (2D game). The hinge joint is attached to one side of my trapdoor and then connected to the 'world'. When the door opens, it rotates around the hinge as expected.

But when some force is applied to the trapdoor, the hinge 'gives' a bit, like the connection to the world is a bit elastic (e.g. I drop a ball onto a closed trapdoor and the trapdoor, including the hinge, will bounce down a bit and then snap back into place. How can I stop this? I want my hinge to only rotate, never to move.

This is 2D physics in Unity 4.5. alt text

The trapdoor pivots around that hinge joint (in this example the plank would turn downwards and touch that star). However, if a physics object falls onto the top of the plank, the plank (and hinge!) moves down a small amount before bouncing back into place. The movement increases if more force is applied. The hinge acts like a spring almost. If I zoom in I can see that the hinge is at a single point, not a small distance away from the actual connection to the plank's rigidbody (which is what it seems like from the behaviour).

REPRO PROJECT

12-06-2014 4-47-50 pm.png (83.9 kB)
repro_hinge.zip (213.4 kB)
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 Deadcow_ · Dec 16, 2015 at 12:26 PM 0
Share

Did you found a way to fix this eventually? Stumbled with same issue here :(

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Hah_BiKes · Jun 22, 2016 at 04:00 PM

Just increase the mass of the door ( or if you are using automass then increase the density to something like 50 )

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

Answer by James-Covalent-Bond · Mar 24, 2018 at 08:00 PM

My problem was that I had "Auto Configure Connected Anchor" enabled

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

Answer by Ben-Stoneman · Jun 11, 2014 at 04:07 PM

As I cannot see what your trap door does and I have no idea what your trap door is supposed to do I guess I can only really help by telling you a way to avoid the bounce back.

I hope I'm correct in thinking that your trap door bounces off the world when it collides with it. You can avoid this with the "Angle Limits" setting in the inspector.

Below is the trap door with a 90 degree "Angle Limit" applied.

alt text

This stops the trap door from not only hitting the platform it is connected to, but also from bouncing back.

Please Accept this if it has answered your question. And let me know if it does not :)


anglelimit.png (4.4 kB)
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 pumpkinszwan · Jun 12, 2014 at 03:53 AM 0
Share

Thanks for responding. That isn't the issue I'm having, however. I will add an image to my question when I get to my dev PC to illustrate better.

$$anonymous$$y problem is that the hinge joint itself moves. I want the joint to stay where I placed it in the designer...regardless of any force acting on it or on the attached plank (which makes up the trapdoor).

avatar image Ben-Stoneman ♦♦ · Jun 12, 2014 at 09:33 AM 0
Share

I'm Unable to recreate the issue with the movement of the anchor or the connected anchor. $$anonymous$$ine stay perfectly still.

Can you provide a small example project?

avatar image pumpkinszwan · Jun 15, 2014 at 12:42 AM 0
Share

Thanks for helping, Ben. I've added a simple repro project to my question.

When the ball lands on the trapdoor in my repro, the trapdoor should be absolutely still, but bobs down slightly. The repro doesn't include the code to open the trapdoor, so in the example the trapdoor is not supposed to open, but rather to act like a stationary shelf. You can see the hinge joint stretch (try adding more mass to the ball to exaggerate the effect).

avatar image
0

Answer by taxvi · Feb 03, 2015 at 11:10 AM

8 moths too late but anyone looking for an answer look at this thread:

http://answers.unity3d.com/questions/34879/rubbery-hinge-joints.html

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

28 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

Related Questions

2D Joint/Wheel Question 1 Answer

Character Joints, twist and swing 0 Answers

Why are my hinge joints inaccurate? 1 Answer

Hinge Joints, distance to connected body 1 Answer

HingeJoint2D.GetReactionForce not working 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