Game Development Community

Spider-tank

by Derek "Dozer" Sellers · in Technical Issues · 05/13/2006 (12:43 pm) · 5 replies

Hey,

In my game, I have a tank from the tank pack as my avatar, and it can do an amazing feat: Climb Walls!

www.dsmind.com/images/misc/tanked/tankscrn1.jpg
I have unofficially dubbed this thing "spider tank"

Now I remember going through a book called ]3D Programming All in One, and I created a game where the avatar could barely even go up gentle slopes. The landscape in my game is very hilly, so I want the tank to be able to get over the little sand dunes, but at the same time, I don't want it to be able to climb the walls. Firstly, it is not very realistic, and secondly, if it gets to the top, there is nothing but a great abyss on the other side. How do I keep it from being able to climb such crazily steep inclines?

#1
05/13/2006 (12:47 pm)
Look in player.cs for runSurfaceAngle, I think that is what your looking for
#2
05/14/2006 (3:31 pm)
I put runSurfaceAngle in tankDB.cs... What's a good setting to keep it at? It was originally at 70, but that didn't change anything, so I took it down to 10 and it still climbed the walls, and then I stuck it up at 100 and it was still climbing hills. What do I change?
#3
05/15/2006 (9:03 pm)
I would really appreciate it if someone answered my question really soon...
#4
05/26/2006 (11:32 am)
Im in the same kinda situation but im wanting the opposite answer :P see my post Spider in Tunnel
#5
05/26/2006 (11:40 am)
Is runSurfaceAngle being called somewhere else? is it still in player.cs which is being called instead?