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 /
avatar image
0
Question by DoubleDouble · Aug 09, 2011 at 06:12 AM · physicscharacterparentingjointrope

Rope Mechanics for Grapple; Climbing and Swinging

I've seen a lot of threads here about about creating ropes, but I am trying to see how one would go about attaching a character to the end of the rope in order to climb or swing on it. The end goal I am aiming for is being able to (once the grapple is attached on the hook end) being able to raise/lower myself from that point or swing across a gap.

The rope I made is a string of hingeJoints. I've been experimenting with different forms of parenting/hingeJoints and tried to do a solution where I attach the character on the end as a Joint, but the character doesn't seem to leave the ground; even when I use IsKinematic.

Anyway, I'm hoping there's something I'm missing. How should I go about doing 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 DoubleDouble · Aug 11, 2011 at 11:59 PM 0
Share

An important thing to mention is that the character "throws" this grapple so it is created link-by-link as it flies out of his hands. Imagine a ninja using a grapple to climb a building. The way I was trying to accomplish this before was by using a joint to connect the player to the last link of rope. Then when the player scrolled down, it would "reel" the last link in, and the player would be jointed to the next link in the line. Unfortunately, it seems the player won't move upwards because of this. The rope just gets stretched out.

Sorry if the question is a little vague, but I'm looking for theories on how one would create this; not even to the psuedo-code level.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Waz · Aug 12, 2011 at 12:34 AM

I think you will want/need to model a taut rope quite differently to a loose one, otherwise you may find the physics simulation not sufficiently precise. That's a lot more work of course if you want multiple joints. Certainly games like Just Cause 2 have a simple rope model (there, the grapple snaps back as soon as it doesn't have line-of-site, I.e. as soon as it cannot be modelled by a single joint).

The point is, be careful trying to implement something with overly-real models. Game Physics is about the experience being fun, intuitive, and predictable. Complicated physics often works against those ideals.

Comment
Add comment · 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 DoubleDouble · Aug 12, 2011 at 01:55 AM 0
Share

Are you saying then that you would accomplish this differently? The goals I have for the grapple are this: 1. Able to be thrown from an animation 2. Able to attach to some surfaces to pull yourself up 3. Able to attach to other objects to pull them 4. (most complicated) able to act as a pulley, going around something higher up and attaching to an object across from you so you can pull it upward. Thanks for the advice everyone, keep the idea's co$$anonymous$$g!

avatar image Waz · Aug 12, 2011 at 11:07 PM 0
Share

Yes, that last one would require more than the one-joint that the Just Cause 2 style of grapple needs.

avatar image
0

Answer by roamcel · Aug 09, 2011 at 11:39 AM

I can only offer you a "who knows if" reply, since your question is missing some vital info, but could help you figure out what's going on. If I were you, I'd run a simple test:

 1- set the rope in an horizontal position, extended from its anchor point, so that gravity would normally influence it to swing
 2- run the scene and assure that the rope behaves correctly and that it swings and comes to a rest thanks to gravity
 3- in the assumption that point 2 concludes correctly, manually child a cube with a proper rigidbody
 4- run again and check if the cube correctly influences the rope swing
 5- in the even that something's not right: check WEIGHTS. All rigidbodies have a MASS parameter which is expressed in KILOGRAMS

Basically, you need to be sure that the total weight of the rope, summing up all the individual rigidbodies masses, is inferior (way inferior i might add) to that of the character or object that eventually tries to climb it or swing by it.

Comment
Add comment · Show 4 · 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 DoubleDouble · Aug 12, 2011 at 12:04 AM 0
Share

Am I able to help with some type of info? Just to clarify: the rope itself acts like it should. It is when I try to put the character on the end as a joint (character won't react), I have made sure to have is$$anonymous$$inematic as false

avatar image Waz · Aug 12, 2011 at 12:36 AM 0
Share

What is your character? It sounds like it is a Rigidbody, not a CharacterController, so are you normally (when not climbing on a rope) moving it by applying forces?

avatar image DoubleDouble · Aug 12, 2011 at 01:48 AM 0
Share

The character is using a CharacterController and also has a Rigidbody. I use the character controller for left-right movement and jumping while I use rigidbody for the collisions and physics.

avatar image Waz · Aug 12, 2011 at 11:03 PM 0
Share

You've got me there. I've never heard of using both at the same time. I'm surprised it is even possible.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Joint Momentum 1 Answer

Hinge Joint Giving Fake 'Slack' 0 Answers

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

Unity HingeJoint2D issues when Flipping ( Negative Scaling ) 1 Answer

Hinge Joint? Unconstrained. 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