Frictional Games Forum (read-only)
Using a rope - problems encountered - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Using a rope - problems encountered (/thread-14813.html)



Using a rope - problems encountered - Twitchez - 04-15-2012

Hey dear Forum Members Exclamation


I managed to make a rope, using a Rope area and a posnode to end it.

My problem is the settnings. I can't make the rope follow the area I have underneath it. To explain my problem a bit more I made a useful picture: http://img577.imageshack.us/img577/4767/95163961.png

(The red represent my rope, and yes the picture is custom made Tongue )


Do I have to make a lot of "small ropes" and then connect them, or how could I solve this problem?


All the best,
//Twitchez


RE: Using a rope - problems encountered - DRedshot - 04-15-2012

The picture is very useful! Tongue

You are right, you have to use a couple of smaller rope areas. (only two though!)

make the first one along the top of the step, and make the second one going down the step. Connect the endBody of the first rope to a block_box_mass_2 (found in entities>technical)
and connect the startBody of the second rope to this same invisible box!

Edit: Play around with the max-length of the rope. It should be about the sme as the distance between the rope-area and the posnode.
Also, shrink the invisible box down so it is approximately as thick as the rope



RE: Using a rope - problems encountered - Twitchez - 04-15-2012

Hey again, thanks for the quick answer.

I might have missunderstood you, but here is the outcome:

http://img802.imageshack.us/img802/1664/unt22itled.png


What am I doing wrong?


RE: Using a rope - problems encountered - Putmalk - 04-15-2012

Try this:

Rope Area -----> End Pos ---> Rope Area (on edge of cliff) ---> End Pos (bottom of cliff) ----> invisible block box (bottom of cliff).

Alternatively, put a pulley entity (in equipment) and make that the EndBody of the first rope, but you still need two ropes.

To illustrate the second suggestion:

Start Area End Pos EndBody
RopeArea1 EndPos1 pulley_1
RopeArea2 EndPos2 invisible_block_box

Where RopeArea2 is going from the pulley down to the bottom of the cliff.



RE: Using a rope - problems encountered - Twitchez - 04-15-2012

"
Rope Area -----> End Pos ---> Rope Area (on edge of cliff) ---> End Pos (bottom of cliff) ----> invisible block box (bottom of cliff)."


This litteraly made my rope go all over the map. You mean with different settnings than Dredshot?

EDIT: I'm sorry, I can't use pullies. They would'nt make any sense in the story I'm currently making Sad


RE: Using a rope - problems encountered - Putmalk - 04-15-2012

Maybe you can't just attach ropes to end pos without an end body as well. Try the pulley method, that will work.



RE: Using a rope - problems encountered - Twitchez - 04-15-2012

Well, I was very close with Dredshot's method. Just that I cant get that special curve on my rope as I want to.

If I would be honest, I think it would have been much easier if ropes worked as an enitity that would be affected by gravity, and you would put where the rope begins, and then let gravity shape it after your plane.


RE: Using a rope - problems encountered - DRedshot - 04-15-2012

Does the top half of the rope need to be dynamic? Click on the invisible box, and check 'static physics'
Then test it in-game. Does this give it a suitable look? Or do you want the top part to swing when you interact with the bottom?

If so, try shortening the MaxLength of the first rope a little more, and making the box a little bit thinner.

It's all trial and error with rope areas, they are really hard to get looking nice. Just keep tweaking and it should begin to look alright. And I'm not sure whether you'll be able to get that neat curve you are looking for, it is really hard to give a rope those kind of collision properties without making it into an entity.


RE: Using a rope - problems encountered - Twitchez - 04-15-2012

Thanks DRedshot, you just made everything look great Big Grin No, I did'nt need it to be dynamic, so I checked static physics and now it looks good again!

Have a nice day!

//Twitchez


RE: Using a rope - problems encountered - DRedshot - 04-15-2012

Your welcome Smile