• 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
Question by supafraud · Jan 04, 2010 at 05:25 PM · physicsjointsjoint

Tie objects together

OK, I need to tie multiple objects together with dynamic rope like connections, and if possible, emit particles along the t$$anonymous$$s rope. For right now though, I'd be happy with just having the objects tied together with the rope. Thanks in advance!

Comment
Mortim
Ehren

People who like this

2 Show 0
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

5 Replies

· Add your reply
  • Sort: 
avatar image

Answer by duck · Jan 04, 2010 at 05:40 PM

I'll just tackle the joint part of t$$anonymous$$s question for now:

I'd suggest looking at using Unity's built-in physics joints, and perhaps use a series of joints linked together to give a rope-like effect.

If your rope-like connection needs to be visible and to be able to coil and bend when not taught, you'll need to use a chain of many joints connected together. If however you only need the connection to be rope-like in terms of having a fixed maximum distance, a single configurable joint would be able to give you that behaviour.

If you are going to need to chain many joints together, the two most suitablewould probably be Fixed Joint (if you had, say, 10 or more of these connected together you would have somet$$anonymous$$ng w$$anonymous$$ch approximated a rope, or at least a chain), or the Spring Joint if you wanted the connection to have some springyness like a bungee cord.

You may want to generate these joint links dynamically via scripting, as it can be a pain to set up t$$anonymous$$s kind of connection by hand - particularly if your rope-like connection is made from many joints - in w$$anonymous$$ch case you will need to remember that you have to set the joint's .connectedBody property last of all (after you have set the other joint properties).

Hope t$$anonymous$$s gets you started in the right direction!

Comment
Mortim
Lucas Meijer 1
Ehren
swisscoder
animalphase
DFLY

People who like this

6 Show 2 · 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 Ehren · Jan 04, 2010 at 08:20 PM 0
Share

Just curious: why do you have to set the connectedBody last of all?

avatar image duck ♦♦ · Jan 08, 2010 at 11:12 AM 0
Share

I'm not sure of the reason, but the effect of not doing it is that your other joint properties won't "take" if they were set after the rigidbody.

avatar image

Answer by Goody! · Jan 04, 2010 at 10:31 PM

I haven't tried it out but there is also a script for making a rope on the community wiki at:

http://www.unifycommunity.com/wiki/index.php?title=LineRenderer_Rope

If you use it and it works post the results back here.

--Goody!

Comment
fufie
Andre-Odendaal

People who like this

2 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 slippdouglas · Sep 17, 2014 at 12:44 AM 1
Share

Unify Community Wiki has relocated to: http://wiki.unity3d.com/index.php/LineRenderer_Rope

avatar image

Answer by gl33mer · Jun 23, 2010 at 09:36 AM

I've been playing around withe the rope scripts on the unify wiki.

There is a second script based on the TubeRendere.js script, it may serve you better.

You can find both scripts here.

http://www.unifycommunity.com/wiki/index.php?title=3D_Physics_Based_Rope

Notice: You must have the TubeRendere.js script in your project - it's the second script on t$$anonymous$$s page. The first script is the tuberope. Add it to the first object and give it a target object in the inspector and that should suffice. Works well.

Comment
Robotron18

People who like this

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

Answer by Jake 2 · Oct 01, 2010 at 06:18 AM

Reverieinteractive.com/cgi/downloads.php

I have upgraded my rope scripts so anyone who has any need for ropes can download the script there!

Jake

Comment
jangomoose

People who like this

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

Answer by gl33mer · Jun 20, 2010 at 02:23 PM

I've just tried t$$anonymous$$s out.

As is. (All I did was un-remark the control code in Update() and added a linerenderer to the first object).

And, well, it's doing somet$$anonymous$$ng....

I've yet to play with all the settings...but at its original settings, it's acting wierd most of the time (lines moving all over the place)...at times it works pretty well producing some beautiful results.

I'll be sure to play around with it some more. (and will post results)

--edit Ok. I've played with it some more and t$$anonymous$$s script is able to produce some neat results. I haven't changed any of the code itself only playing around with the parameters in the inspector. Let me know if you need help setting it up. It's actually quite surprising. I put it into a WIP scene of mine and it's actually brought up some interesting ideas.

Comment
Ricardo

People who like this

-1 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 Ricardo · Jun 21, 2010 at 09:02 AM 0
Share

Please don't add coomments as answers.

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

No one has followed this question yet.

Related Questions

Hinge Joint Giving Fake 'Slack' 0 Answers

How to create a freely swinging "rope" of modifiable size between two rigid bodies? 0 Answers

How to get configurable joint to observe limits? 1 Answer

How can I make a configurable joint behave like a spring joint? 0 Answers

Violent shaking when using position drive in Configurable Joints 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