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 /
This question was closed Aug 09, 2016 at 12:35 PM by hahahavip197 for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by hahahavip197 · Aug 08, 2016 at 06:22 AM · rigidbodygravitystringrealisticinertia

How to make a string to connect 2 object - not string variable,

Hi, I have, for example, 2 cubes, and I want to connect one corner of this cube to one of other cube by a string, like thisalt text

When I move cube one - assuming the right one, I want the left to be moved after. On the other hand, I want to make it like in the real life with tension, inertia force, and gravity. So please tell me how to make it. Thank you in advance.,

untitled.png (16.2 kB)
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

  • Sort: 
avatar image
1
Best Answer

Answer by nyonge · Aug 08, 2016 at 07:54 AM

The easiest way would be to grab an asset from the Asset Store that gives you this functionality, like QuickRopes. http://u3d.as/2Rh

To do it yourself for free you could play around with Unity physics. A relatively simple way would be to create a bunch of small cylinders beside each other, forming your rope. Put Rigidbodies on them and use joints like Hinge Joints to connect them all together, and connect them to your cubes (which would also need rigidbodies).

There's looooots of ways to do what you're describing, but those would probably be the simplest in Unity. Good luck!

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 hahahavip197 · Aug 09, 2016 at 12:34 PM 0
Share

Thanks. I am a high school student, and this is my first project in my learning. So I want to make it as cheapest as possible. I found a tutorial and I will do it tonight.

avatar image
1

Answer by shahzaib · Aug 08, 2016 at 02:12 PM

giving objects a tether effect is pretty easy to achieve and can be done with "hinge joints" between the two objects and by tweaking the "spring" value, you will get the tethered (or hinged) object moving with slight delay or tension.

Glad if that helps!

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 hahahavip197 · Aug 09, 2016 at 12:32 PM 0
Share

Thank you so much. It really helped. I googled it and I found some tutorial for myself. English is not my mother language, and I should have called it "rope", not a "string". Anyway, thanks again

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

How do I programmatically Combine Inertia Tensors? 2 Answers

My Mecanim-Generic is screwing with the gravity 2 Answers

Rigidbody unwanted drifting 3 Answers

Tornado throwing back force after pulling 1 Answer

Addforce.forward on a sphere object 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