# Creating Rope Physics for Unity [closed]

I want to create a bungee jumping-like game in Unity and therefore I need a rope physics. I especially need elastic ropes with capability to pull objects with velocity after a little extension. Do you know any place to start? Because I have no idea how to start such scripting.

I looked at Asset Store. There are some rope physic simulators, but I have to do it on my own, plus they are really expensive.

EDIT: I already tried using Spring and/or Configurable Joints in Unity, but they did not give what I want.

• By now you may have heard of the overused Jakobsen relaxation method, right? You basically have a spring given by its A, B endpoints and you verify how stretched/compressed that spring is w.r.t its restlength. You then directly move A towards B (or away from) with a fraction (typically 0.5) of the displacement from the rest length.. You could also add an elastic force and lower that fraction to 0.2 or 0.05 even to have a stretchier "stiff" spring constraint and.. you're set. Writing a Unity script for that shouldn't be that difficult.. – teodron Jul 11 '13 at 8:38
• Actually I have not heard about it, that's why I asked to question, to get a starting point. I am looking for it now. Another point in my mind is that, how to represent this physics with a graphical representation of rope? Should I apply this to a mesh, or create the mesh from some curves or similar to that? – hevele Jul 11 '13 at 8:49
• I googled and found a series of relevant results. These two should help you design simple and efficient constraints, and also integrate/simulate them (if you need to add forces, integrating them is kind of required).. gamedev.tutsplus.com/tutorials/implementation/… and cs.rpi.edu/~cutler/classes/advancedgraphics/F05/assignments/… – teodron Jul 11 '13 at 9:25
• Thank you very much. You helped a lot, hopefully I can create the rope I want from these. – hevele Jul 11 '13 at 9:26
• I think this question is a bit too open-ended. If you could give more details as to what you've tried and why it didn't work, that would help a lot for getting you an answer. – MichaelHouse Dec 18 '13 at 15:24