Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 MasterLG · Aug 09, 2017 at 05:17 AM · hingejoint2d

How to enforce HingeJoint2D angle limits?

Hello, I'm trying to use HingeJoint2D to make a somewhat ragdoll-like structure prop itself up, and also be able to wiggle its limbs. I have also set it so that none of the rigidbodies involved in a structure like this can collide with each other.

It should be noted that I have overlapping colliders, but I believe this shouldn't matter as all colliders are on a layer that cannot collide with itself.

I have set Use Limits to true, and I have set an upper and lower angular limit.

Now, I have made 3 assumptions, and it seems the angle indicators all agree with me:

  • The angles are in degrees

  • 0 degrees is the right-hand side of the x-axis, and it goes around anti-clockwise

  • The angles are in local space

Now, I'm having the following issues:

  • The hinges seem to be able to twist outside of the specified angle limits (even though they are enabled and set)

  • The hinges seem to twist and apply their own force (even with motor speed of 0, gravity scale on all rigidbodies set to 0

Here are some screenshots for context. The red arrow points towards a hinge in the first screenshot, the same hinge in the second screen shot, and its details are then shown in the third screen shot. http://imgur.com/a/gZnsL

Screenshot 1: The structure in its default pose, with angle restriction markers shown

Screenshot 2: The structure in its "settled" pose after it rotates in 0 gravity

Screenshot 3: Settings for one of the hinges

How do I go about ensuring that the angle of the HingeJoint2D must always stay within the limits? In reference to the first screenshot, I would like to keep the rotations within the angle indicators (not necessarily needing elasticity, just rigidly keeping rotation within the limits would even be preferable).

My apologies for the long post.

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

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

67 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

Related Questions

How to access the variables of HingeJoint2d? 1 Answer

HingeJoint2D disabling and re enabling limits, makes the joint rotate all the way back 0 Answers

Hingejoint2D makes a spin before getting into the angle limits. 1 Answer

Connected Rigidbody2D with HingeJoint2D not working properly 0 Answers

Hinge Joint 2D with seperate push movement through physics 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