• 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 /
  • Help Room /
avatar image
Question by ActualDog · Feb 19, 2016 at 09:53 AM · physicsjointsconfigurablejointconfigurable joint

ConfigurableJoint Projection Angle issues if any axis is locked

I've been mucking with this and searching around online for info for the past 4 hours without any luck, so I'm really hoping someone here can point me in the right direction.

I'm in Unity 5.3.2f1 and I can't seem to get the Projection Angle var to work on a ConfigurableJoint if the joint locks rotation in any of its axes.

I've tried this in the context of my actual project and in a fresh and clean empty project with default physics settings and no cruft, but the result's the same. I've also tried pumping up the solver iteration count and mucking with other global physics settings and none of that has helped.

I've gotten it to break with the simplest of setups. Two rigidbodies, not parented to each other, connected via a single Config joint. That joint sets the X axis rotation to "Limited" and specifies limits. Let's say -45 and 45 for the low and high angle limits respectively. The other two axes are set to "Locked", or alternatively to "Limited" with an angle limit of "0".

Running the simulation like this, things are fine. The bodies fall to the ground and limit themselves. I can rotate one of the blocks and the other uses the joint to rotate as expected.

I go back to their joint and set Projection Mode to Position and Rotation. I run the simulation and things still work fine.

Now I go back again and update the Projection Angle to be a lower value than the default 180 (which as far as I can tell is a value that does nothing). Let's say 150. Running the simulation again the boxes immediately flip out and fly off the screen.

Freeing up the locked axes or giving them limits of at least the default value (3), the simulation runs fine again.

What gives? Am I missing something obvious? Is it conceptually just nonsensical to use a Projection Angle if any single axis is locked? Is the field just busted?

Comment
Arkaid

People who like this

1 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 Arkaid · Mar 16, 2017 at 07:32 AM 0
Share

Bump.

Experiencing the same problems here D:

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by raithza · Apr 19, 2017 at 04:56 PM

If I were you I would just manually reproject: check the angle of the two bodies every frame, and if it's too far out physically move the errant body.

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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Joint with limit more than 180? 0 Answers

Joints are Stretching [Configurable Joints] 1 Answer

How to keep Configurable Joint from stretching? 0 Answers

Configurable Joint putting space between anchor and body. 0 Answers

Configurable joint don't rotate around the local axis of the rigidbody 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