Game Development Community

Player Conforming to Interiors Upside Down

by Affectworks · in Torque Game Engine · 10/16/2006 (9:40 am) · 9 replies

I spent the past weekend working on getting players to walk on surfaces at any angle. I looked at the Conform to Terrain resouce and it was extremely helpful in understanding the beast that is player.cc . I was hoping that this awesome community would have some helpful tips towards achieving this task.
I found it relatively easy to get past the gravity always being down issue. Now I am somewhat struggling with the task of either conforming the player to terrain +180 degrees or changing the players up axis to what I set as the gravity vector.

Thanks

#1
10/16/2006 (10:43 am)
Hi, welcome to the community. So do you want to know how to make the player be able to climb a certain angle only? then i think its in player.cs you should see max degreese angle or something change it.

i aint much of a pro myself :)
#2
10/16/2006 (11:11 am)
Thanks for the response!

I'm actually looking for more of a way to make the player rotate its up direction according to its gravity vector. In short, Right now the engine seems to really like z to be the up and down axis I would like to make that dynamic to a vector of my choosing (gravity vector).

btw... welcome to the community back at ya :)
#3
10/16/2006 (11:34 am)
Couple of days ago I figured out that I need something like that. And for both of my projects.
Would be neat if someone who's advanced with torque could help us.
#4
10/16/2006 (12:05 pm)
Here something that might help. It for the vehicle but might lead you in direction you want go.

Stupid WheeledVehicle tricks
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8786
#5
10/16/2006 (12:51 pm)
Thanks, it looks like that resource could be of some help. I will post any of my findings here for you as well Juha.

If anybody else has any ideas or tips please feel free to join in the discussion as well.
#6
10/18/2006 (3:02 am)
.
#7
10/18/2006 (12:44 pm)
Good news everyone! :)
So now I can walk on the ceiling... well mostly actually it seems to work upto about 320 degrees or so (the rest of the 40 degrees, I tend to slide off of like it were too steep, shouldn't be a problem)... anyway I was wondering if anybody has any ideas on why it is when I try to walk straight up or down in the z direction my player snaps to face in the y and x planes and can't look +z or -z?
I'm pretty sure it has something to do with the player not being setup in the engine to horizontally rotate to face the z plane or something weird like that... anyway if you guys have thoughts feel free to share.

If I don't make much sense please ask me to rephrase the question.
#8
10/22/2006 (3:48 pm)
I really like the progress you've made with this. I hope you figure it out with the gravity vector, and make it a resource sometime :)
#9
10/23/2006 (9:42 am)
Quote:player snaps to face in the y and x planes and can't look +z or -z?

might be the minLookAngle, and maxLookAngle ?