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 mathmos_ · Oct 04, 2012 at 09:58 AM · rigidbodyjointspring joint

"Gluing" pieces together for a breakable object with springs

Hi I'm trying to find the best way to glue together the fragments of a preshattered object. So far I've managed to make it work with fixed joints which is somewhat disappointing because the object is far to wobbly. I've read to in some engines people use springs instead. This would at least allow me control how wobbly the object will be. However Unity only allows you to attach one spring joint per game object, which renders it useless for this purpose.

Warwick Allison posted an answear to the problem here, which I haven't tested yet, because it requires you to make a lot of extra rigidbodies which I would like to avoid. http://answers.unity3d.com/questions/120332/how-to-use-multiple-spring-joints-on-the-same-obje.html

So my question is: Is there a way to attach multiple rigidbodies to a single gameobject, without using additional rigedbodies. Perhaps a custom spring joint script? Why is this not possible in the first place? Is there perhaps a different better approach?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by Ludeme Games · Oct 04, 2012 at 10:20 AM

I think most breakable objects are typically implemented by having a single rigid body object which is just the shell. When the object is collided with it 'breaks' by destroying itself and instantiating the shattered pieces in it's place, applying forces to each.

Comment
Add comment · Show 6 · 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 mathmos_ · Oct 04, 2012 at 11:27 AM 0
Share

Thanks. That approach is surely easy and cheap, but it is not what I am trying to a achieve. I hope to simulate more realistic destruction by allowing an object to only break partially. It's supposed to potentially be used for destruction of for instance buildings. It wouldn't make sense that an entire building would collapse if you affected it in a way that would normally only chip the concrete.

avatar image T27M · Oct 04, 2012 at 12:21 PM 0
Share

With some tweaking the above method could work. Split your building up into areas, Split those areas up if you wanted. Depending on the force of the hit and where you would instantiate the pieces. If enough of the building or its supports are destroyed then it collapses.

Its going to take a bit of coding to make it look right.

avatar image mathmos_ · Oct 04, 2012 at 12:33 PM 0
Share

I guess what you are suggesting is a kind of hierarchical partitioning of the object, but those individual parts that the object would be split into would still be completely shattered when affected and that's just not what I am trying to achieve.

avatar image T27M · Oct 04, 2012 at 12:37 PM 0
Share

Not completely shattered it would depend on the amount of force applied to that area, if it was great enough it would shatter and possibly "leak" to near by parts of the building. Those parts would only crumble slightly.

avatar image mathmos_ · Oct 04, 2012 at 12:40 PM 0
Share

I don't follow :/

Show more comments

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

11 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

Related Questions

Moving a Rigidbody and then connecting a joint? 1 Answer

Why can I attach only one SpringJoint? 0 Answers

Rigidbody Sliding UP Incline 0 Answers

Violent shaking when using position drive in Configurable Joints 1 Answer

Configurable Joint just falls apart? 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