Game Development Community

Wall running

by Lee-Orr Orbach · in Torque Game Engine · 10/19/2005 (1:25 am) · 7 replies

Hello!

I was wandering if it is possible to make a player wall-run, so I tried to make it possible with scripting alone, and I got stuck. I wanted to know if it is possible to rotate a player 90 degrees in the players Y-axis, and for some reason I couldn't do it. If anyone knows how to rotate a player like that, I'll be really grateful!

Thanks,
Lee-Orr

#1
10/21/2005 (5:17 am)
You can't rotate the demo player class by any axis other than Z. It just ignores all other axis. I fear what you want to do simply cannot be done without some extensive code changes.

Given the nature of the demo Player class, the way it handles collision and processes movement, you should consider writing a new player class, depending on the kinds of moves you want your player to perform.
#2
10/21/2005 (9:52 am)
Or I can add another animation of the demo player in 90 degrees?
but that will be a problem since I'm not a good animator.

thanks,

Lee-Orr
#3
10/21/2005 (10:53 am)
There's a code for wallriding. Maybe worth taking a look at?

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8786
#4
10/21/2005 (11:19 am)
Take a look at the code used to make the tank conform to the terrain. That should give you an idea of how to do it... Mind you, it's not actually turning hte player, just rendering the player as turned.
#5
10/21/2005 (2:06 pm)
I actually spoke to MattF about this the other day and got a lot of information from him on how to do this. Once I find my notes I'll post it here.
#6
10/21/2005 (10:41 pm)
Thanks alot,

lee-orr
#7
11/15/2005 (11:32 pm)
What became of this? I was playing around with it for fun and didn't get anywhere...

My approach: http://www.garagegames.com/mg/forums/result.thread.php?qt=36533
I was going to FIRST change the max slope the player could climb and then worry about rotateing him. Didn't realize I can't rotate him in-engine with the player class, but I suppose it could be done in annimation just as easily - right?