Game Development Community

Wall Walk?

by Denis Linardic · in Torque Game Engine · 11/02/2005 (2:51 pm) · 6 replies

Hi,

I am trying to figure out how to create wall wallking (i hope this is right term).

If you played Alien vs Predator you'll know what I mean. My player can walk normaly but when I press and hold button I want him to start walking on the wall(if it's close to one).

I am asking for few guidelines cos I realy don't have idea where to start with this one.

Thanks!

#1
11/03/2005 (6:17 am)
Anyone have idea? ;)
#2
11/03/2005 (6:51 am)
I played AvP too and wanted this effect in our prototype. We got something working but it's not good and has it's own slew of problems.

Depending on your skills it might be easier for you than it was for me, but start looking at how you locally can apply forces to an object (like gravity). The biggest problem will be collision with walls when they intersect with eachother, like this:

I
I
IO___

If your playerobject is where the O is, and you try to climb on the wall; you might run into problems where the object gets stuck. Throwing a raycast or two and double-checking works, but it didn't prove to be working good on our server.

Good luck.
#3
11/03/2005 (6:53 am)
Did you need engine changes for this one?
#4
11/03/2005 (7:05 am)
Denis this would require engine changes, if you search stickywheels you will see how they changed the gravity to calculate as always below the tire no matter the orientation of the tire. You could do something similar with the player files in the engine.
#5
11/03/2005 (7:07 am)
Here is a resource to allow vehicles to drive on walls, perhaps it will help.
#6
11/03/2005 (7:17 am)
Thanks guys, you helped a lot!