Dynamic Attachment to objects
by Cinder Games · 01/06/2008 (9:59 am) · 8 comments
Ok, so some of you may be familiar with my "Platforms that players can ride" psuedo-resource. It allows players to ride DTS pathshape objects wherever they roam.
I've been working on this code ALL day, since about 10am till.. heck it's 3:41 now. I hit alot of snags, forgot what most of my code did, etc.
I've improved it. Now other types of objects can ride the platforms. Currently, Item, players, and static shapes can ride around. yay.
It's also 1.5.2 compatible. quite a few small changes were made to some of the files, so this has been "fixed"
Suppose i better show some pictures, how bout a video as well?
Here you can see the player object with a dozen or some objects attached to him. And off in the distance is our favorite orc to shoot, Kork, riding along a pathshape.
subvoicestudios.com/~ramensama/TorqueDynamicAttachment.avi 1024 x 768
subvoicestudios.com/~ramensama/TorqueDynamicAttachment-sm.avi 800 x 600
Now please know that there's a few times when the screen doesn't update, this was when i was pressing the ~ key... apparently that told fraps to do some benchmark crap at that time. it's not related to the attachment code which is instantaneous.
I could remake the video... but i'm not gonna :P
The next step for me is attaching in relation to node. So the player can reach down and pick something up, or something. Or Projectiles, swords, shrapnel will stick into the player and animate based on a node... but not restricted to the node's transform like mounting. As you can tell this is a step beyond mounting.
I've laid the ground work for most types of objects to work, but right now they need to have an interpolatetick function.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Updated code availalable in my link below. Check it out!
www.garagegames.com/mg/forums/result.thread.php?qt=57187
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I've been working on this code ALL day, since about 10am till.. heck it's 3:41 now. I hit alot of snags, forgot what most of my code did, etc.
I've improved it. Now other types of objects can ride the platforms. Currently, Item, players, and static shapes can ride around. yay.
It's also 1.5.2 compatible. quite a few small changes were made to some of the files, so this has been "fixed"
Suppose i better show some pictures, how bout a video as well?
Here you can see the player object with a dozen or some objects attached to him. And off in the distance is our favorite orc to shoot, Kork, riding along a pathshape.subvoicestudios.com/~ramensama/TorqueDynamicAttachment.avi 1024 x 768
subvoicestudios.com/~ramensama/TorqueDynamicAttachment-sm.avi 800 x 600
Now please know that there's a few times when the screen doesn't update, this was when i was pressing the ~ key... apparently that told fraps to do some benchmark crap at that time. it's not related to the attachment code which is instantaneous.
I could remake the video... but i'm not gonna :P
The next step for me is attaching in relation to node. So the player can reach down and pick something up, or something. Or Projectiles, swords, shrapnel will stick into the player and animate based on a node... but not restricted to the node's transform like mounting. As you can tell this is a step beyond mounting.
I've laid the ground work for most types of objects to work, but right now they need to have an interpolatetick function.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Updated code availalable in my link below. Check it out!
www.garagegames.com/mg/forums/result.thread.php?qt=57187
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
About the author
#2
01/06/2008 (9:54 pm)
Fantastic!
#3
01/07/2008 (12:26 am)
That's really great Ramen. Keep up the great work you are doing. :)
#4
01/07/2008 (3:46 am)
Is this going to be a resource? It's done in source right? Or is it script?
#5
www.garagegames.com/mg/forums/result.thread.php?qt=57187
Here's the thread i posted the code in, it's in a private thread. But i'll may submit a resource for it. Either way, i'll release the code. But i'd like to wait till i have the node attachment up and running.
01/07/2008 (3:52 am)
It's about 95% done in the source. I think i'll actually go ahead and do a real resource this time around.www.garagegames.com/mg/forums/result.thread.php?qt=57187
Here's the thread i posted the code in, it's in a private thread. But i'll may submit a resource for it. Either way, i'll release the code. But i'd like to wait till i have the node attachment up and running.
#6
01/07/2008 (8:59 am)
Love the music, it makes the video much more awesome.
#7
Makes me think of scenarios in FPS games where you try to grab a health pack and it jumps on the bus and rides away... heh... Awesome resource though!
>X-o
01/08/2008 (5:01 pm)
Quote:Currently, Item, players, and static shapes can ride around.
Makes me think of scenarios in FPS games where you try to grab a health pack and it jumps on the bus and rides away... heh... Awesome resource though!
>X-o
#8
01/10/2008 (1:21 pm)
Cool! I should try it this. :-)
Torque 3D Owner Brian "Cybore" Smith