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 supermarten · Sep 13, 2012 at 08:30 AM · physicsbughinge

Hinges break at certain angles

I think I've found a bug with the physics engine.

Setup:
I've a rigidbody attached with a normal hinge, no motor or spring or anything. The rigidbody is a long block and the hinge is attached at the end of it, so it's like a trapdoor. The block is constrained in position Z and rotation X & Y so it's only moving in 2 dimensions.

I have this trapdoor colliding with a solid collider and I've found several consistent situations where the hinge breaks, not so much breaks as in being destroyed, but more like it's moved from it's actual position.

This mostly happens when the block collides with the solid collider at one its most pointy angles, and what happens is that the rigidbody sort of nudges its way INTO the solid collider, dragging the hinge along. (I have a gravity changing mechanic in my game so I have a lot of these situation potentially available to the player)

Has anybody else experienced this and perhaps found a workaround?

EDIT:
Here's a picture with both colliders highlighted. alt text

Here's a minimal scene where the problem occurs: link

hingeproblem.zip (4.0 kB)
hinge-problem3.png (29.9 kB)
Comment
Add comment · Show 7
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 supermarten · Sep 13, 2012 at 11:40 AM 0
Share

I've uploaded another image. As you can see the problem really lies in that the bug only occurs in certain angles, which leads me to believe something is wrong with the physics engine and not the situation.

So could you describe these "impossible" situations better?

avatar image supermarten · Sep 13, 2012 at 01:03 PM 0
Share

Correct, no other colliders.

avatar image supermarten · Sep 13, 2012 at 01:05 PM 0
Share

I don't use springs, motors or limits. Both break forces are set to infinity.

avatar image supermarten · Sep 13, 2012 at 01:38 PM 0
Share

I'm well aware and thankful for physics simulation being simplified in games as compared to the real world. However, I don't feel like I've found a super extreme situation and therefore imagined someone else might have experienced this and found a workaround

avatar image Fattie · Sep 13, 2012 at 01:45 PM 0
Share

right sorry for the general comment - people of huge range of abilities on here.

I am playing with your rig now. I just don't know.

One thought ... just turn off gravity on the square hitter-cube. Run. as you know it works perfectly. only then, drop the hitter cube on it.

you will see, it works perfectly !

if the Hitter happens at the same time as the swing, it appear to cause the - let's say - poor performance of PhysX.

I tried increasing the solver, etc etc -- no difference.

I just think it can't handle well the idea that you're trying to HA$$anonymous$$$$anonymous$$ER a piece of wood in to a tight corner.

the hinge at top right is exactly the same as having a wall at the top right.

the ramp is just penetrating both the floor and the "wall" on the right, which it is wedged between the two.

FTR using materials (often a good idea) and making them a tad bouncy would perhaps be a workaround, I bet that would fling it off better.

I am truly sorry I am not "inside PhysX" enough to offer any more insight on this specific "wedgie" problem !! Let's hope someone else is ...

Show more comments

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

Why are my hinge joints inaccurate? 1 Answer

Duplicated object and original behave differently 0 Answers

CapsuleCast colliding improperly 2 Answers

2D 360 degress platformer example needed 0 Answers

Getting a ball to settle between two points. 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