Game Development Community

TorqueX Rope Physic Demo 1

by Alexandre Ribeiro de Sa · 02/12/2009 (9:18 am) · 13 comments

0Some days ago I'm was looking for a way to do a small rope with Torque X or Torque Game Builder.

Ok, there no way to do that only with the standard physic engine, so I'm working in a kind of expansion, so, here my first demo test.

TorqueX Rope Physic Demo 1 Video

The main idea of this module isn't develop a totally new physic engine, but develop only a expansion for the TX and TGB standard engine.

So, this demo is running on TorqueX, and work both in Windows and XBox 360.

Any question, comments or suggestions, please post here :D
And I'll try to post more demos and betas here soon...

#1
02/12/2009 (9:37 am)
is there a way that you could add a weight to the end of that rope and have it swing like a ball and chain?
#2
02/12/2009 (10:46 am)
@Tyler - Sure, this is exactly what I need for my game! :D
I'm working in something like this right now ;)
#3
02/12/2009 (12:56 pm)
Very neat! Was this very hard to code?
#4
02/12/2009 (3:07 pm)
nice!

suggestion:
add the ability to layer an animation on top of it. start with a simple sine wave.
#5
02/12/2009 (5:56 pm)
@Zachary - Just a little... But will become very easy to use ;)

@Jim - Hum, nice idea... And can solve some future questions from my game heheheh :D

I'll try to re-write some code next week to solve some problems, the link system isn't good yet and try develop the basic implementation too...
#6
02/12/2009 (7:19 pm)
Looks good. Your rope is fairly elastic at this point. Maybe the next step would be to confine it to a single length.
#7
02/12/2009 (8:03 pm)
@Jeffrey - Thats right! And yes, this is my next step... I don't know how can I do yet, maybe a elasticity property, this can be very nice feature for breakable objects...

Just a note, I saw in YouTube stats some visitor from China saw the video and this post, so: 您好中国, 来自巴西的问候!

Just a note, I'm learning Chinese, if I wrote something wrong, please, tell me :p
#8
02/12/2009 (11:53 pm)
Awesome demo. Maybe you can add a property for elasticity... so it could be used for a rope or a bungie/rubberband? That would make it more likely to be useful for multiple things. :)

Brian
#9
02/13/2009 (10:51 am)
@Brian - Nice idea to a next demo, I'll try to control the elasticity today and try to develop a better link system, the current one sux (any suggestion?)...

Next demo: Ragdoll + Bungie Jump = Very funy demo :D
#10
02/13/2009 (12:06 pm)
you might also try using Box2D as the core engine,
and wrapping it for TX.

michael woerister just did a great Box2D integration with TGB and also wrote a very nice paper describing the integration process, which might be of use.
#11
02/13/2009 (6:35 pm)
@Orion - Thanks, I'll integrate the Box2D in my TGB tomorrow, and great paper!

Not sure if is a good idea use another engine in my implementation, why not, with TX you can easily develop a game both for Windows and XBox platform, and Box2D isn't ready for XBox yet :D
#12
02/20/2009 (7:24 am)
This is really cool.

I have an off subject question though... what markup did you use to get the video to work?
#13
02/20/2009 (11:51 pm)
@Brian - Hi, sorry about the delay, to much work -_-'...

Here what I did:
[ youtube=ueiGy5WkNrA width=640 height=480 ]