Here is a basic 2D rope in action. The rope swings and the player can grab onto it and swing around like Tarzan. All of this was accomplished without the use of RopeScript. However, the rope has to be built segment by segment manually.
If you want to make this rope yourself, then use CharacterJoint components for every segment, connected to the segment above it. Only the topmost joint gets a hinge joint instead, connected to the world. I'm not sure about the "Axis" settings of the segments, so just experiment around (I used (1,0,0) and (0,0,1) for Swing Axis).
You can restrict the joints to 2D by using a script. Using ConfigurableJoint components did not work out well for me.
As for the whole grabbing stuff, write a script and attach it to every segment (unless you don't want to grab these segments). I made the segments' colliders into triggers, but that's up to you and how you want it. Also, in my case the rope has a layer that can only collide with the player, ignoring everything else.
If you want to learn more about RopeScript, visit this thread:
http://forum.unity3d.com/threads/3500...
If anyone wants to reconstruct it, refer to this thread:
http://forum.unity3d.com/threads/7672...)
Смотрите видео swinging 2D rope in Unity3D game engine онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь HiPhish 22 Январь 2011, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 31,547 раз и оно понравилось 49 людям.