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
0
Question by Slavq · Jan 23, 2011 at 08:22 PM · jointfixedspringsolid

Why Fixed Join behaves like spring?

Hi everybody, I'm new in Unity! When I connect two rigidbodies together with FixedJoint, it's not solid - it behaves like a spring. (The first object is "chasing" with delay the second one) If I change "Solver Iteration Count" parameter from default 6 to for example 90 - the connection is solid, but I've read that this can drain the performance... How I can fix that?

Thanks in advance and sorry for my english ;)

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
1
Best Answer

Answer by Jason B · Jan 23, 2011 at 09:54 PM

Solver iterations can reduce performance, true, but you should check your FPS to see how much effect it's actually having on performance before you decide to look for another alternative. In my experience, you have to increase your solver iterations quite a lot, and then have quite a lot of physics objects before this starts becoming an issue.

The only other alternative for improving physics accuracy (that I know of) is changing the physics time step (this is how often physics are calculated per second) but that I know for a fact has serious performance side effects (if you adjust it to be higher quality). Time step differs from solver iterations because time step means how many times per second physics is calculated, whereas solver iterations is how thoroughly and accurately each calculation is performed.

Therefore, solver iterations is indeed what you should be using.

Unfortunately, you can't "fix" any drain in performance that may be caused by increasing the solver iterations. Or in other words, you can't get more accurate calculations without paying a higher processing price. :) Now, you CAN increase solver iterations for more accurate calculations, and then enhance performance a bit by raising the physics time step, but I don't recommend this because the more you raise it, the lower your physics simulations run in frames per second. If you have a game running at 60 FPS, and physics objects simulating at 30 times per second, for instance, it looks really icky.

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
avatar image
0

Answer by Ostin · Aug 27, 2011 at 01:26 PM

You can fix it very easyly and efficiently. Here is my solution.

  1. The object your joint is attached must be parent of the object you are trying to attach.

  2. On start store it's local position.

  3. Every frame in Update() function reset its position to initial local position.

Don't do it in the FixedUpdate() because object will still move in every frame. The compound objects will be diamond hard but will although break as they normaly do.

This way You can fix other joints too, but it will be not that simple.

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 Remsigin · Jan 02, 2013 at 03:44 PM 0
Share

Can you post your script? Becouse $$anonymous$$e is working only on static objects like a tree.

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

How to make two objects connected by a joint collide? 1 Answer

rotate object that has FixedJoint2D 1 Answer

Editing joint programmatically? 2 Answers

Hinge joints not reaching target position 1 Answer

Rotating object between two points? 1 Answer


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