Climb Ladders, Trees, Etc in T3D
by Charles Wolfsandle · 05/20/2009 (5:10 pm) · 28 comments
This is a port of the following resource: Click Here
Here is the new file: Click Here
I have based the file structure of the zip file on modifying the template so that the changes carry over to new projects. I have not tested it yet on FPS, or PhysX kits.
I have included a ladder to play around with, as well as a climb animation (don't get too excited it is just a copy of the jump animation since the code relies on an animation with a vertical component).
I have also included a mission with several ladders placed about to have fun with.
I am posting this in the hopes that someone will be kind enough to help me take this to the next level and make it a proper climbing solution for T3D.
Limitations:
Not true climbing, object cannot be perpendicular to ground plane (must be rotated slightly to make it lean or the character cannot climb it)
Forward key bind allows the player to climb, however if you try to descend, the player jumps backward off of the ladder (might be because of the faster speed of boombot, still testing) so this seems to be a one way climb for now.
My ultimate goal is to work on a TRUE climbing system and I would like to enlist any help possible to make that happen. If you are interested please let me know!
Here is the new file: Click Here
I have based the file structure of the zip file on modifying the template so that the changes carry over to new projects. I have not tested it yet on FPS, or PhysX kits.
I have included a ladder to play around with, as well as a climb animation (don't get too excited it is just a copy of the jump animation since the code relies on an animation with a vertical component).
I have also included a mission with several ladders placed about to have fun with.
I am posting this in the hopes that someone will be kind enough to help me take this to the next level and make it a proper climbing solution for T3D.
Limitations:
Not true climbing, object cannot be perpendicular to ground plane (must be rotated slightly to make it lean or the character cannot climb it)
Forward key bind allows the player to climb, however if you try to descend, the player jumps backward off of the ladder (might be because of the faster speed of boombot, still testing) so this seems to be a one way climb for now.
My ultimate goal is to work on a TRUE climbing system and I would like to enlist any help possible to make that happen. If you are interested please let me know!
#23
02/22/2010 (1:01 pm)
Christian S's link is also broken. Anyone have a copy of this available, please?
#24
02/22/2010 (2:59 pm)
Sorry, changed the folders up there. Link is fixed.
#25
04/14/2010 (5:27 am)
Sorry. let me find it and I'll repost
#26
07/14/2010 (8:34 pm)
Link updated again
#27
Have a question though - the rate at which the player climbs the ladder does not seem to equal their on-foot walking speed. I want players to move more slowly on the ladder so they can get off on different floors more easily (think one tall ladder running up a tube with several exit points).
So I went into art/datablocks/players/player.cs and tweaked the maxforward speed down from 14 to 8, which slowed my character down on foot to a more reasonable level (always thought he moved a bit fast), but he still flies up and down the ladder really fast.
Maybe it's an optical illusion and he is in fact only moving at a rate of 8, but doesn't seem so.
Anyone have any ideas how to slow the climbing down? Not the animation, but the actual movement of the player up and down the ladder... Or just tell me that I'm imagining things and that in fact I am doing it right :)
Thanks!
11/01/2010 (7:58 pm)
Great resource, works fine in latest 1.1B3...Have a question though - the rate at which the player climbs the ladder does not seem to equal their on-foot walking speed. I want players to move more slowly on the ladder so they can get off on different floors more easily (think one tall ladder running up a tube with several exit points).
So I went into art/datablocks/players/player.cs and tweaked the maxforward speed down from 14 to 8, which slowed my character down on foot to a more reasonable level (always thought he moved a bit fast), but he still flies up and down the ladder really fast.
Maybe it's an optical illusion and he is in fact only moving at a rate of 8, but doesn't seem so.
Anyone have any ideas how to slow the climbing down? Not the animation, but the actual movement of the player up and down the ladder... Or just tell me that I'm imagining things and that in fact I am doing it right :)
Thanks!
#28
03/01/2011 (1:09 pm)
Well, a cheat for stopping the jump off the ladder bit would be to put an invisible backplane up so that the player would hit it and slide down. 
Torque 3D Owner Aleksander Elvemo