• 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
Question by CiberX15 · Nov 03, 2022 at 06:50 PM · physicsrigidbodyjointsjoint

How to get configurable joint to observe limits?

Ok so I am using a configurable joint on a humanoid ragdoll. I've set up the joints to be locked on all axis's except for the one's I want them to be able to move on, and I have set those to limited. The locked axis appear to work fine, however, the limited axis appear to be ignored...

Specifically the knees are the most noticeable problem. The knees are set to be able to bend 90 degrees one way, but 0 degrees the other (as knees do). (so Angular X motion is the only one set to limited, all others are set to locked. The High Angular limit X equals 90 and the lower angular X limit equals 0. Bounciness and Contact Distance are both set to zero) When the character falls over, the knees often bend the wrong way. Not always though, it seems like it's acting as if the limits aren't even there. I've double checked to be sure that I have the limits set correctly (don't have them backwards etc.).

I've tried setting the Angular X Limit and Angular YZ Limit springs to as high as 200, and as low as 0 with no noticeable effect,

I've even set Projection Mode on the joint to Position and Rotation, and setting Projection Angle to 1 which, if I am reading the documentation correctly, should FORCE the joint to ignore physics and snap back to the limits if it goes past them by 1 degree, and it still seems to do nothing.

Am I missing something? Feels like the configurable joint is pulling a Pirates of the Caribbean and viewing the constraints as "guidelines..." How do I get the configurable joint to observe the limits?

Comment

People who like this

0 Show 0
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

  • Sort: 
avatar image
Best Answer

Answer by CiberX15 · Nov 04, 2022 at 06:00 PM

Ok, I figured out the solution. Seems I wasn’t going high enough when messing with the Angular Limit Springs. Spring has to be set to at least 360 to have enough power to force the joint back into the correct position. Less than that and it will use a far too gentle touch, like trying to gently press a nail into the wall with your finger rather than hitting it with a hammer, until you press with enough force, there is no noticeable difference between 1lb and 10.

What made it more confusing is that setting Spring to zero is apparently shorthand for "default", unless Damper is set to anything, in which case Spring appears to actually be treated as zero.

So for the effect I am trying to achieve, the only two viable settings are either leaving both Spring and Damper at zero, or I suppose if I wanted to allow some bend, setting Spring up to 360

Setting Damper reduces how fast it can spring back so I found a Damper equal to the spring produces very stable results (unlikely to flip out) but allows objects pressing against the rigidbodies to easily move them past their limits. For example, if using a hanging chain, pushing the chain past its limits in this configuration will look like the chain just swings back to the target rotation with gravity, with no noticeable acceleration. However it won’t pass the limits on it’s own without being forced by another collision.

Setting Damper to half the Spring value results in the chain springing back with noticeable force. Again, it will be allowed to be pushed past it’s limits, but it will use reasonable force to push it back into place.

So yeah. For my project I’m going to go with probably somewhere in the 75% spring power damper, since I’m allowing the player to pick up the ragdoll and swing them around, so I want the extra stability. If the ragdoll isn’t going to be under such extreme forces I would recommend higher spring and lower damper settings to increase how much power the joints use to keep within their ranges. Or just set Spring and Damper to 0 wich seems to put it into a mode where it will use maximum force without tripping into infinity errors.

Comment

People who like this

0 Show 0 · 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

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

266 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 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

How to create a freely swinging "rope" of modifiable size between two rigid bodies? 0 Answers

Violent shaking when using position drive in Configurable Joints 1 Answer

How to link rigidbodies with joints while ignoring the other one's drag 1 Answer

Configure configurableJoint to act as the disctontinued driveJoint 0 Answers

Connect rigidbody to another moving rigidbody to simulate a hanging weight 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