Rope Bridge

Started by
15 comments, last by d9930380 21 years, 10 months ago
I am looking to code a rope bridge. Conceptually I''m thinking of using a "line of planks" connected by springs. Would this be the best way or do you know of any others. Thanks.
Advertisement
Hey,
I think ud need to use springs that have basically NO elestasity, esentially rope. That should do the trick. If there only going to be one person on the bridge at a time, you might precompute the values for each position of each plank depending on the plank the person is on. Hope that made sense... don tthink it did, but ull prolly have > 1 ppl on the bridge anyway.
Thanks but yea I will have more than 1 person on it.
Rather than using springs for the plank connections - which might give you some problems in actually finding a stable equilibrium point once a force is applied - why not model the bridge in terms of the tension and compression forces going between each pair if plancks. The reason I suggest this is that all compression forces are zero and all tension forces only apply if the rope between two plancks is at maximum length. What you really have to deal with is a set of loosely connected, hanging plancks. Each of these hangs from long, thin, flexible beam which you might want to simulate using segmented springs. You might find that easier to implement than trying to integrate a very large system of springs for all plancks and rope connections.

Cheers,

Timkin
Another way to do this is to treat the entire bridge as an inelastic string fixed at two points. That is, as long as you''re not worrying about particularly realistic sideways oscillations.

Then, for every object along the length of the bridge (each plank and actor) you evaluate an high degree non-linear simultaneous equation set for the resultant tension in the rope between each object.

Mind you, this method will really suck to implement, because you have to solve simultanious trigonometric equations... not fun at all.

It might also be possible that you can solve it entirely using vector math, but I can''t say for sure.

I can''t provide you with a sample, but it''s likely that you''ll find this a very challenging problem just from a mathematical point of view.

George D. Filiotis
Are you in support of the ban of Dihydrogen Monoxide? You should be!
Geordi
George D. Filiotis
quote:Original post by Symphonic
Then, for every object along the length of the bridge (each plank and actor) you evaluate an high degree non-linear simultaneous equation set for the resultant tension in the rope between each object.


Isn''t that what I said above? If it isn''t, how is it different? (Genuinely curious)

quote:Original post by Symphonic
Mind you, this method will really suck to implement, because you have to solve simultanious trigonometric equations... not fun at all.

If you choose to solve it analytically you can ease the pain with linear algebra.

quote:Original post by Symphonic
It might also be possible that you can solve it entirely using vector math, but I can''t say for sure.

If you''re modelling forces (and solving them either analytically or numerically) then you are applying vector mathematics.

Cheers,

Timkin
quote:Original post by Symphonic
Are you in support of the ban of Dihydrogen Monoxide? You should be!

I know this is off topic - so spank me for it - but that has to be one of the most ridiculous websites around! The amount of effort someone has gone to in order to convince the average ''dumb'' member of society to support a ban on Dihydrogen Monoxide! I mean really, DHMO essential to modern society; without it we would not function. It is a great additive to most drinks and certainly enhances the flavour and texture of many softdrinks. It''s an excellent cleaning product and certainly helps my plants grow! It has limitless uses... support DHMO and reject the call to ban it!

Timkin
Yes but just think about how many people have died by accidentaly inhaling dihydrogen monoxide!!!!!

_____________________________

And the Phoenix shall rise from the ashes...

--Thunder_Hawk -- ¦þ
______________________________
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________
Hmm lets see... Dihydrogen Monoxide... hmm...

Di = 2 so that would make 2hydrogen.
Mono = 1 so that would make 1oxgyen

and the letter representing them is H for hydrogen and O for oxygen.

So in colusion, H20... hmm... Wonder what that chemical is?



______________________________________________
You know your game is in trouble when your AI says, in a calm, soothing voice, "I''m afraid I can''t let you do that, Dave"
if some1 would help me >:-( they would also help you, because it would explain how to do your bridge. even if there are multiple people on it.

http://www.gamedev.net/community/forums/topic.asp?topic_id=100355

---
shurcool
my project

This topic is closed to new replies.

Advertisement