Game Development Community

dev|Pro Game Development Curriculum

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!
Page «Previous 1 2
#1
05/20/2009 (5:24 pm)
I'll play with it later thinking NPCs more for the time being
#2
05/20/2009 (7:04 pm)
Nice, and thanks for sharing.
#3
05/20/2009 (8:24 pm)
Neat, ill play with this later tonight.
#4
05/20/2009 (11:56 pm)
Nice work. I got the resource working and it works like a charm.
#5
05/21/2009 (5:16 am)
Tek0 - Did you install it in the Template or one of the other projects?
#6
05/21/2009 (7:36 am)
I tried this with the fps kit, he walks right through the ladder, I am using my own climb anim, it has vertical animation.
he does not climb.
dunno.
in showtool the animation is fine, he climbs verticaly, so thats not the problem.
#7
05/21/2009 (7:50 am)
I installed the resource a Template made from the Torque Toolbox.
#8
05/21/2009 (8:31 am)
Deepscratch, can you try with template? I have noticed some differences in locations. If it works in template we can figure out what the difference is.
#9
05/21/2009 (8:55 am)
sure, rebuilding.....
#10
05/21/2009 (9:19 am)
it works with the full template,
but not with the others.
#11
05/21/2009 (9:53 am)
Deepscratch - have you triedto change to a different player model in the other kits, maybe a problem with how the code interacts wit the new player model.
#12
05/21/2009 (10:04 am)
I found some locational differences. Let me see what needs to me changed.
#13
05/21/2009 (11:04 am)
In FPS, climb animation needs to be in game\art\shapes\actors\animations since there is no players\animations folder. Also, player.cs from game\scripts\server\players in my file needs to be merged with game\scripts\server\player.cs

Now for the strange part... Gideon seems to climb while you are holding forward, but falls down when you let go, instead of just pausing. I'm not sure why it acts differently than Template.

also: in game\scripts\server\player.cs

comment out:
%obj.setArmThread("look");
#14
05/26/2009 (10:02 am)
If anyone can help me figure out why the player jumps off versus climb down, please let me know.
#15
05/27/2009 (1:40 am)
Charles - I'm planning on implementing a somewhat 'true' climbing system in my game. I'd love to collaborate and see what your ideas on this are. I just wanted something like Stalker's ladders, where you're fairly restricted to doing up/down and you're basically mounted to the ladder.
#16
05/31/2009 (6:21 pm)
Daniel - That is exactly my plan...this for was for immediate needs.

What you mentioned is exactly what I would like to work on. I was thinking about figuring out how to rip some of the z movement code out of the swimming code. Basically, you look up, press forward and you travel on a parallel to the plane of the ladder/fence/etc. look down, press forward, you go down. However, I want to make sure that left and right movement is still allowed, to allow for moving across fences, etc. I'm not sure if the best way is to make it a climbable object type, or simply some sort of specialized trigger that can be placed wherever you need. Drop me a line @ wolfsandle@(nospam)gmail.com
#17
06/01/2009 (9:36 am)
It seems that the link is broken could you reset the link.
Thanks
#19
09/13/2009 (10:13 am)
*nudge* broken link again ;)
#20
10/05/2009 (10:56 pm)
broken link, I'm trying to use a invisible ladder for my game. thx
Page «Previous 1 2