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 Ichender · Sep 22, 2015 at 10:40 AM · configurablejointconfigurable joint

desc.isValid() fails! Adjusting Configurable joint through script.

I've written a script where my configurable joint angularYLimit parameters lerp from 0 to a set number over time. It compiles without any errors, and also works without a problem. But once every couple of seconds when running the script in runtime I get an error message in the console saying :

D6Joint::loadFromDesc: desc.isValid() fails! UnityEngine.ConfigurableJoint:set_angularYLimit(SoftJointLimit)

I've tried locating the source of this odd behavior but I cannot seem to get my head around it. First I thought it was a problem with using floating point values in the limits field with like dozens of decimals. But even after I truncated the parameters of the variable to round everything to only 2 decimal values (like when adjusting the limits in editor view), I still keep getting the error.

I've seen people get desc.isValid() fail errors when creating new joints or connecting them with itself but this is a joint I've premade and pretuned in the editor view and I am only changing the angularYLimit parameters with a variable that's spitting out .xx values.

Could it be a bug? The console error appears on random intervals when the values are changing. Maybe something with the game engine or the joint not being able to deal with a rapid flow of truncated floating point values in FixedUpdate, and getting calculation errors or... Something?

Comment
Add comment · 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 Ichender · Sep 23, 2015 at 12:36 PM 0
Share

Ok, I think this certainly is a problem with something not being able to keep up with very fast paced calculations and changing values. The more complicated mathematic calculations I add to the variable the more often the error message appears. And if I use set values it stops appearing completely.

 //////////// This is just an example script used for visualizing.
 var a : float;
 var b : float; ///// say we lerp this value over t
 var t : float; ///// used for lerping b and multiplying/dividing stuff.
 
 function FixedUpdate(){
 
 a = 10 * t; ////////// this gives me the error around once every 5-10 seconds.
 a = (10 *t) / (b / 100); /////////// this gives me the error like 1000 times a second or more
 
 }

Any thoughts on this? It's most definately something to do with the joint not being able to handle mathematic calculations unless I'm mistaken.

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

2 People are following this question.

avatar image avatar image

Related Questions

Joint system scale problems 2 Answers

Set ConfigurableJoint targetAngularVelocity towards targetRotation 0 Answers

Can I attach multiple ConfigurableJoints to one RigidBody (closed loop of ConfigurableJoints) 0 Answers

Configurable Joint: Unable to keep distance the same 2 Answers

Components jittering - Configurable joints 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