|
| 06 Dec 2013 06:45 PM |
Hello fellow scripters,
I came up with something quite fun with rope physics using verlet integration. Let's have a look shall we?
http://www.roblox.com/Rope-physics-Swinging-spoderman-test-place?id=137727197
|
|
|
| Report Abuse |
|
|
|
| 06 Dec 2013 06:48 PM |
| That is one of the most amazing places I've been too. However, to prove its relevance to the forum, you may want to go more in-depth on the scripting involved. |
|
|
| Report Abuse |
|
|
zac4545
|
  |
| Joined: 19 Aug 2009 |
| Total Posts: 2324 |
|
| |
|
|
| 06 Dec 2013 07:28 PM |
Wow, i'm genuinely impressed, and it works perfectly. It's surprisingly easy to navigate with just these ropes, it controls quite nicely. Not to mention, ROPES! Best implementation I've seen. I could imagine a very interesting game using these. :3
~The alpaca of the acting world. |
|
|
| Report Abuse |
|
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
| |
|
|
| 06 Dec 2013 09:31 PM |
| That is amazing. It doesn't quite allow you to connect multiple people together without glitching, but it is quite smooth. |
|
|
| Report Abuse |
|
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
| |
|
|
| 07 Dec 2013 01:57 AM |
| The problem with connecting multiple people is that they would have to share the same constraint and everyone has them locally, so it would become server-side and very buggy. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 02:20 AM |
| I enjoy spodering thoroughly. |
|
|
| Report Abuse |
|
|
oseday
|
  |
| Joined: 27 Aug 2008 |
| Total Posts: 1308 |
|
|
| 07 Dec 2013 04:17 AM |
| It's totally awesome, nice job. |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
| |
|
RaidenJPN
|
  |
| Joined: 22 May 2013 |
| Total Posts: 6920 |
|
|
| 07 Dec 2013 11:00 AM |
^
What's with the lone parenthesis? |
|
|
| Report Abuse |
|
|
200AB
|
  |
| Joined: 24 Aug 2010 |
| Total Posts: 1604 |
|
|
| 07 Dec 2013 11:00 AM |
That parentheses wasn't supposed to be there. :c
Anyway, fantastic job! |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 11:11 AM |
| This is really awesome, can you give us the basics on how you scripted it? |
|
|
| Report Abuse |
|
|
Oreology
|
  |
| Joined: 15 Sep 2012 |
| Total Posts: 507 |
|
|
| 07 Dec 2013 11:16 AM |
I KNEW IT! ITS CLIENT SIDED.
Nice work. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 12:02 PM |
Well the basic principle would be this:
Have a straight line of points that store position, velocity and acceleration. Connect them in the right order with a constraint, keeping them a certain distance away from each other. Loop through the constraints in the update loop, solve the constraints and repeat this loop like 5-40 times so it won't stretch.
Google for 'Verlet Integration' for more information. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 10:02 PM |
I noticed that when you swing from a certain height, you don't end up at that height again. Where do you think the energy of the swing goes? In Roblox, the only forces acting on the mass are gravity and the tension of the string. Does the stretchiness of the string have anything to do with it?
Also, obligatory:
how do i shot web |
|
|
| Report Abuse |
|
|
|
| 08 Dec 2013 06:39 AM |
| Yeah, stretchiness has to do with it. Also if the swing isn't perfect, as in it doesn't go in a perfect arc, some of the energy will go to the stretchiness. The air resistance multiplier is 0.997, so that affects it a little bit. |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2013 06:56 AM |
| How'd you make that amazing Game? |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2015 08:30 PM |
| im ####### to make a spider man game wats the ######## |
|
|
| Report Abuse |
|
|