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 Trond · May 06, 2013 at 06:31 PM · rigidbodyforcejointrestrictmovement

How to truly lock an axis in a configurable joint?

I know how to "lock" both movement and rotation on the different axis in a configurable joint, but when selecting it, its not actually locked at all it seems. It is allowed to move around as it wants to, all it takes is enough force. And the bigger difference between the mass of the object that got the joint, and the object the joint is attached to, the smaller force it takes to move it "freely".

It seems like "locking" only "creates a spring" to hold it in place, not actually locking the movement or rotation at all. So i wonder, are there any way to truly lock a configurable joint?

If not, are there atleast any way to strengthen the joint, so that it takes like 1 000 times more force to pull/push it out of its position?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by jkraptor · Aug 27, 2015 at 02:31 PM

Some people add a fixed joint temporarily to lock, but that would lock all axes. The the NVidia Physx website has some suggestions about how to deal with the difference in masses when using any joint.

https://developer.nvidia.com/sites/default/files/akamai/physx/Manual/Joints.html

see the section at the end of the page on : Configuring Joints for Best Behavior

If your seeing separation at the joint, try increasing the number of iterations on the physic solver. That tends to hold joint together better. (Project Settings > Physics > Solver Iteration Count).

(I realize that this answer comes 2 years later - it's for the benefit of others that may read your post).

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 methusalah999 · Jun 08, 2019 at 04:30 PM 0
Share

link is broken

avatar image
0

Answer by Ravenflash · Dec 05, 2018 at 10:59 PM

I just had a problem like that and couldn't find any real and simple solution. So started to playing with some scripting and this script seems to solve my problem for now.

It messes up with physics, so I added a condition to use this forced rotation only when needed. Otherwise my parent object keeps slighlty rotating/moving.

 public class KeepJointRotation : MonoBehaviour {
 
     Quaternion initRotation;
 
     // Use this for initialization
     void Start () {
         initRotation = transform.localRotation;
     }
 
     // Update is called once per frame
     void FixedUpdate () {
         RotationUpdate();
     }
 
     void RotationUpdate()
     {
         float delta = Quaternion.Angle(transform.localRotation, initRotation);
         if (delta > 1) {
             transform.localRotation = initRotation;
         }
 
     }
 }
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

15 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

Related Questions

How can i give a joint Limited Strength? 0 Answers

adding drag to a relative force 0 Answers

How to fix/clamp rigidbody dir vector, despite Force dir 1 Answer

How to change velocity of object which move by Rigidbody. 1 Answer

Movement Physics: Max Speed and Momentun 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