Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Rope physics  (Read 2979 times)
0 Members and 1 Guest are viewing this topic.
Offline Frog

Junior Newbie

Java games rock!

« Posted 2004-12-14 18:16:28 »

Hi! Is there any tutorials on programming a realistic looking (2d) swinging rope,just like those seen in Pitfall_Jungle  mobile (java) game . I have googled on subject ,but find nothing Sad ,so You are my last hope  Smiley
Offline dsellars

Junior Devvie

Need to write more games

« Reply #1 - Posted 2004-12-15 18:13:19 »

you could maybe try the Verlet integration technique detailed in this article:

if the rope was made of a number of constrained particles it may work.


edit: posted before i finished typing Smiley
Offline Frog

Junior Newbie

Java games rock!

« Reply #2 - Posted 2004-12-15 21:08:22 »

Thank You very much! indeed - this article is closest to what I need !  Cheesy
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #3 - Posted 2004-12-21 20:30:09 »

BallJoints are the best way to go. Just connect multiple boxes together with BallJoints and away you go!

Then to make a rope look like a proper rope, not just a bunch of boxes, construct a trimesh over the boxes that extends from one end of the box, to the other end of the same box, then from the end of the first box to the start of the second....etc

Thats the way im currently doing it, and thats also the way to make Cloth too (or even a matress!).

A similar approach can be taken for ragdolls. Boxes also connected via ball joints, however, those boxes control certain vertices of the mesh, so as they move, they move the vertices with them...

However, making this in a nice API way to use for future (i.e not just for a specific box setup for a specific model that is one legged, has a beared and a pony tail) is near to being a nightmare Smiley

Hope that gives you some ideas....

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
  ignore  |  Print  

EgonOlsen (75 views)
2018-06-10 19:43:48

EgonOlsen (56 views)
2018-06-10 19:43:44

EgonOlsen (76 views)
2018-06-10 19:43:20

DesertCoockie (256 views)
2018-05-13 18:23:11

nelsongames (156 views)
2018-04-24 18:15:36

nelsongames (155 views)
2018-04-24 18:14:32

ivj94 (896 views)
2018-03-24 14:47:39

ivj94 (157 views)
2018-03-24 14:46:31

ivj94 (809 views)
2018-03-24 14:43:53

Solater (173 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!