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 Tom21 · Mar 12, 2012 at 05:15 PM · springjoint

Creating a "bungee rope" between two characters

Hello, I'm creating a game for school, which involves 2 characters attached at the waist by a Bungee rope on a circular platform. They must attempt to knock each other off by using the spring in the bungee rope to launch at each other, the collision resulting in one of the players being pushed back. To do so, one player would "run away" from the other and once he gets close to the max length of the rope, would jump (resulting in 0 friction) and be catapulted at the other player, a rubber band effect if you will.

From what i've tested i'm getting the beginning of the behavior i'd like with a spring joint (or configurable joint) on each character, but they're by no means "launching at each other", and once the end of the rope is reached, character movement becomes erratic (moving up the Y axis etc)... I'd also like the link to be visible and solid, meaning if the players were at an angle around a pillar, the rope would bend around it, which would in turn affect the trajectory of a player if he jumped. This would suggest creating a "chain link" rope unless i am mistaken? How would i achieve this behavior using multiple objects to create a rope?

Am i on the right track? If anyone has any pointers or suggestions that could help i would be extremely grateful. Thank you for taking the time to read this !

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 syclamoth · Mar 12, 2012 at 05:17 PM 0
Share

Should be a fun one... Start off making a long chain of spring joints, see how that works.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Meltdown · Mar 12, 2012 at 09:33 PM

This is not an easy one. Take a look at some previous answers to get some ideas..

http://answers.unity3d.com/questions/22550/how-do-you-make-ropes.html

There is also a rope script that can be downloaded from here..

http://reverieinteractive.com/downloads

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 Tom21 · Mar 19, 2012 at 09:19 PM

Thank you for your suggestions. I did a lot of testing, using different joints, and so far the chain of spring joints is the best start (or hinge joints with spring turned on, basically the same), but it still is basically just a rope. I've been dabbling with the various parameters for hours, but nothing gives me that big spring effect i'm looking for, and i haven't managed to find any similar project online. Perhaps i'm going at it wrong but what set of numbers on spring joint would make the object rocket backwards? In space and set vertically with one fixed end, it works pretty well if i pull down on one end, it will bounce up, but horizontally (on a platform), the effect is near invisible... :(

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 Tom21 · Mar 19, 2012 at 11:40 PM

Aha! I've actually made lots of progress using an "InteractiveCloth"! Which i tried after seeing these videos http://forum.unity3d.com/threads/80533-Game-in-two-days-%29-Ropector ! Playing around with the parameter values has got me very close to the ideal behavior. Still have to iron out a few kinks where sometimes both characters go flying in random directions, and that when a collision occurs the force is transferred from one to the other though. Thanks again for your help!

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

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Spring Joint 2D Strength? 0 Answers

Physics for multiple connections - advice needed 0 Answers

Grapple Gun Parkour 0 Answers

Problems with Spring Joint 2D 1 Answer

Change springjoint2D connected anchor to where the player is facing (Y-axis) 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